[opencms-dev] Use of enum keyword in OpenCMS sources

Martin Kuba makub at ics.muni.cz
Tue Jun 15 10:24:04 CEST 2004


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?

The upcoming Java 1.5 version introduces a new keyword "enum"
in the place of "class" and "interface" like in:

public enum Color{
    Red,
    White,
    Blue
}

See for example
http://www.javaworld.com/javaworld/jw-04-2004/jw-0426-tiger1-p2.html

And jikes is prepared for compiling sources of JDK 1.5
so it reports it as a warning.

Martin
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno             Martin Kuba
Institute of Computer Science    email: makub at ics.muni.cz
Masaryk University             http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2847 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040615/4d50c56e/attachment.bin>


More information about the opencms-dev mailing list