473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Error Reading Annotation

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.
May 20 '08 #1
1 1477
Dököll
2,364 Expert 2GB
I haven't got a clue, emekadavid! Have you previoulsy searched this forum for ideas? Please do so, links may be available with perhaps samples you can use. Do stay tuned also, and Google if you could... I would add a little more to the search text though, you'll get more hits on your issue that way.

Perhaps you can modify to this: java:12: cannot find symbol in addition to your title, how 'bout that! Please ask one of our admins to do it for ya, if you're interested...

Dököll
Jun 12 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jeff | last post by:
This is one that has been stumping me for a few days now. I have an xml document that is based on a schema, and that schema is based on another schema. When using XMLSpy 2004 Enterprise Edition,...
0
by: Deep Purple | last post by:
I started with the following error... ------------------------------------------------------- An error occured while loading the schema with TargetNamespace 'http://www.w3.org/2001/XMLSchema'...
13
by: ScottM | last post by:
I have run into a problem generating the class file via the WSDL utility. I have a WSDL file that was generated by XMLSpy and is able to be read by the Java code utility, but I get the following...
0
by: rautsmita | last post by:
hello friends , i am using to jdk6 and JAXB2.0, i have geomtry.xsd file i am trying to compile this file using jaxb but i got some error i.e.The particle of the type is not a valid restriction of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.