[opencms-dev] Use of enum keyword in OpenCMS sources
Tristan Tarrant
ttarrant at etnoteam.it
Tue Jun 15 10:23:01 CEST 2004
That is because Eclipse doesn't know about the new features in JDK 1.5.
I modified my build.xml's <javac> invocation by adding the parameter
compiler="jikes", and I used IBM's Jikes v1.21.
Read this for more info about JDK 1.5's enum
http://jcp.org/aboutJava/communityprocess/jsr/tiger/enum.html
Basically you could just rename all instances of the "enum" used as
identifier. I generally use the shorter "en" identifier.
Tristan
On Tue, 2004-06-15 at 10:03 +0200, Alexander Kandzior wrote:
> I haven't heard about this '"enum" as an identifier is deprecated' issue.
> However if this is true I certainly want to fix this for 6.0.
>
> We use Eclipse for coding with almost all compiler warnings turned on, and
> also checkstyle. Both tools dosen't know about this issue. Can you provide
> some information (maybe a link) what exactly causes this issue and how to
> fix it?
>
> Best Regards,
> Alex.
>
> Alexander Kandzior
> Alkacon Software - The OpenCms Experts
> http://www.alkacon.com
>
>
> -----Original Message-----
> From: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org]
> On Behalf Of Tristan Tarrant
> Sent: Monday, June 14, 2004 5:48 PM
> To: OpenCMS
> Subject: [opencms-dev] Use of enum keyword in OpenCMS sources
>
>
> I just compiled a fresh build from CVS using Jikes and it gave me this:
>
> *** Lexical Warning: The use of "enum" as an identifier is deprecated, as it
> will be a keyword once -source 1.5 is implemented.
>
> I believe it would be a good idea to change all instances of the identifier
> "enum" to something else before 6.0 comes out.
>
> Tristan
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040615/d61b0bd1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2121 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040615/d61b0bd1/attachment.bin>
More information about the opencms-dev
mailing list