Annotations is feature added in Java 5, you need to set your project: http://java.sun.com/j2se/1.5.0/docs/guide/language/annotations.html
http://www.developer.com/java/other/article.php/3556176 ________________________________ Guillaume Cauchon | DataDirect Technologies inc. -email: [EMAIL PROTECTED] -mobile: 418.952-7357 -work: 418.649-1551 -----Original Message----- From: Weck, Andreas [mailto:[EMAIL PROTECTED] Sent: Thursday, January 17, 2008 9:00 AM To: [email protected] Subject: AW: Eclipse, wsdl2java and huge warnings I tried the Annotations and got the following Error: Syntax error, annotations are only available if source level is 5.0 but i develop in 1.4. Regards, Andreas >Thank you for the information! > >so i can assume that i will haven't any problem, if i ignore all the warnings? > >And how can i change the generation templates? > >Regards, >Andreas > > > >Weck, Andreas ha scritto: > Hi all, > > i just downloaded the JDK 6 Update 4, axis2 1.3 and Eclipse 3.3. After > that i've used the wsdl2java command-line tool to create the client > classes. > > wsdl2java -uri service.wsdl -u > > Than i made a new java project in eclipse, with the options (compiler > compliance level 1.4) and imported all the generated java files into it. > Now it have approximately 500 warnings!!! Mostley like "The local > variable [VARNAME] is never read" (in can see the first 100 only) > > Does anyone have any suggestions around suppressing/fixing these > warnings? > > Regards, > Andreas You can add @SuppressWarnings("unused") and/or @SupressWarnings("unchecked") (or, for short, @SuppressWarnings("all")) before the declaration of each generated class. Unfortunately, this has to be done by hand, otherwise you have to change the generation templates to automatically add those annotations. -- Mauro Molinari Software Developer [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
