ERROR - The annotation @JavaBean is disallowed for this location

Error

The annotation @JavaBean is disallowed for this location


Error Type


Compile Time


Possible Cause

Annotation @JavaBean is not allowed at this location. It's a class level annotations and hence should be placed at class level only.


Resolution

Specify the annotation at class level. 

@JavaBean(description = "",defaultProperty="",defaultEventSet="")
public class Test {
}