can someone help me out
please who can tell me what's wrong with this code. i received the
error below:
run-single:
E:\Documents and Settings\isaak\My Documents\NetBeansProjects\articles
\src\art\Staff.java:12: cannot find symbol
symbol: class Worker
@Worker(value=@Name(firstName="Jules", lastName="Vernon"),
E:\Documents and Settings\isaak\My Documents\NetBeansProjects\articles
\src\art\Staff.java:12: cannot find symbol
symbol: class Worker
@Worker(value=@Name(firstName="Jules", lastName="Vernon"),
1 error
the annotation, worker:
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.CLASS)
public @interface Worker {
Name value();
enum SeasonEmployed{Spring, Winter, Autumn, Summer}
SeasonEmployed season();
String[] references() default "unavailable";
String townResidence();
}
@Target(ElementType.ANNOTATION_TYPE)
@Retention(RetentionPolicy.CLASS)
public @interface Name {
String firstName();
String lastName();
}
@Worker(value=@Name(firstName="Jules", lastName="Vernon"),
season=Worker.SeasonEmployed.Summer,
references={"Site-Mgr", "Works-Mgr"},
townResidence="London")
public class Staff {
private boolean employeeType;
public boolean getEType(){
return employeeType;
}
public Staff(boolean type){
this.employeeType = type;
}
}
the processor's process method has no code, i just wanted it to return
true or false. all the files are in the same package