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]