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


-----Ursprüngliche Nachricht-----
Von: Mauro Molinari [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 17. Januar 2008 14:15
An: [email protected]
Betreff: Re: Eclipse, wsdl2java and huge warnings

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]

Reply via email to