gayu schreef:
> hi,
>
[quoted text clipped - 11 lines]
>
> please give me a solution at the earliest.
You have a package that has ‘enum’ in its name. This is no longer
allowed in Java 1.5. Rename the package or do what the compiler says:
compile with -source 1.4 (I would recommend the former).
H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
Lew - 29 Jun 2007 07:24 GMT
gayu schreef:
>> i have j.d.k 1.5 being used in my program which gives error as
>>
[quoted text clipped - 5 lines]
>> "oper.setStyle(org.apache.axis.enum.Style.RPC);
>> oper.setUse(org.apache.axis.enum.Use.ENCODED);"
>> please give me a solution at the earliest.
>
> You have a package that has ‘enum’ in its name. This is no longer
> allowed in Java 1.5. Rename the package or do what the compiler says:
> compile with -source 1.4 (I would recommend the former).
You are stuck with the latter since you don't get to rename the third-party
artifacts.
You could try the version of Axis that doesn't have this issue.
<http://ws.apache.org/axis2/>
Even in Asix 1.x the particular class 'Use' is deprecated.
<http://ws.apache.org/axis/java/apiDocs/org/apache/axis/enum/package-summary.html>
Bottom line: don't use that 'org.apache.axis.enum' package.

Signature
Lew
>i have j.d.k 1.5 being used in my program which gives error as
>
>"(try -source 1.4 or lower to use 'enum' as an identifier)
> oper.setUse(org.apache.axis.enum.Use.ENCODED);"
see
http://mindprod.com/jgloss/compileerrormessages.html#ENUMASIDENTIFIER
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com