can someone help me out

E

emekadavid

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top