<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.1.16">
</HEAD>
<BODY>
That is because Eclipse doesn't know about the new features in JDK 1.5.<BR>
I modified my build.xml's <javac> invocation by adding the parameter compiler="jikes", and I used IBM's Jikes v1.21.<BR>
<BR>
Read this for more info about JDK 1.5's enum<BR>
<BR>
<A HREF="http://jcp.org/aboutJava/communityprocess/jsr/tiger/enum.html">http://jcp.org/aboutJava/communityprocess/jsr/tiger/enum.html</A><BR>
<BR>
Basically you could just rename all instances of the "enum" used as identifier. I generally use the shorter "en" identifier.<BR>
<BR>
Tristan<BR>
<BR>
<BR>
On Tue, 2004-06-15 at 10:03 +0200, Alexander Kandzior wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">I haven't heard about this '"enum" as an identifier is deprecated' issue.</FONT>
<FONT COLOR="#000000">However if this is true I certainly want to fix this for 6.0.</FONT>

<FONT COLOR="#000000">We use Eclipse for coding with almost all compiler warnings turned on, and</FONT>
<FONT COLOR="#000000">also checkstyle. Both tools dosen't know about this issue. Can you provide</FONT>
<FONT COLOR="#000000">some information (maybe a link) what exactly causes this issue and how to</FONT>
<FONT COLOR="#000000">fix it?</FONT>

<FONT COLOR="#000000">Best Regards,</FONT>
<FONT COLOR="#000000">Alex.</FONT>

<FONT COLOR="#000000">Alexander Kandzior</FONT>
<FONT COLOR="#000000">Alkacon Software - The OpenCms Experts</FONT>
<FONT COLOR="#000000"><A HREF="http://www.alkacon.com">http://www.alkacon.com</A></FONT>


<FONT COLOR="#000000">-----Original Message-----</FONT>
<FONT COLOR="#000000">From: <A HREF="mailto:opencms-dev-admin@opencms.org">opencms-dev-admin@opencms.org</A> [mailto:<A HREF="mailto:opencms-dev-admin@opencms.org">opencms-dev-admin@opencms.org</A>]</FONT>
<FONT COLOR="#000000">On Behalf Of Tristan Tarrant</FONT>
<FONT COLOR="#000000">Sent: Monday, June 14, 2004 5:48 PM</FONT>
<FONT COLOR="#000000">To: OpenCMS</FONT>
<FONT COLOR="#000000">Subject: [opencms-dev] Use of enum keyword in OpenCMS sources</FONT>


<FONT COLOR="#000000">I just compiled a fresh build from CVS using Jikes and it gave me this:</FONT>

<FONT COLOR="#000000">*** Lexical Warning: The use of "enum" as an identifier is deprecated, as it</FONT>
<FONT COLOR="#000000">will be a keyword once -source 1.5 is implemented.</FONT>

<FONT COLOR="#000000">I believe it would be a good idea to change all instances of the identifier</FONT>
<FONT COLOR="#000000">"enum" to something else before 6.0 comes out.</FONT>

<FONT COLOR="#000000">Tristan </FONT>

<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">This mail is send to you from the opencms-dev mailing list</FONT>
<FONT COLOR="#000000">To change your list options, or to unsubscribe from the list, please visit</FONT>
<FONT COLOR="#000000"><A HREF="http://mail.opencms.org/mailman/listinfo/opencms-dev">http://mail.opencms.org/mailman/listinfo/opencms-dev</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>