Don't use 'enum' in source files
Maarten Coene <[email protected]> Thu, 29 Apr 2004 13:07:38 +0200
| Newsgroups | gmane.comp.java.classpath.extensions.discuss |
|---|---|
| Organization | QMedit |
| Message-ID | <[email protected]> |
Hi,
Is it possible to avoid the use of 'enum' as name of local variables in
the jaxp sources? 'enum' will be a keyword in the upcoming jdk 1.5 release.
A list of warnings I receive if I try to compile the jaxp sources is
given below.
regards,
Maarten
C:\Projects\Other\jaxp\source\gnu\xml\aelfred2\XmlParser.java:1511:
warning: as of release 1.5, 'enum' is a keyword, and may not be used as
an identifier
String enum = null;
^
C:\Projects\Other\jaxp\source\gnu\xml\aelfred2\XmlParser.java:1523:
warning: as of release 1.5, 'enum' is a keyword, and may not be used as
an identifier
enum = dataBufferToString ();
^
C:\Projects\Other\jaxp\source\gnu\xml\aelfred2\XmlParser.java:1526:
warning: as of release 1.5, 'enum' is a keyword, and may not be used as
an identifier
enum = dataBufferToString ();
^
C:\Projects\Other\jaxp\source\gnu\xml\aelfred2\XmlParser.java:1531:
warning: as of release 1.5, 'enum' is a keyword, and may not be used as
an identifier
parseDefault (elementName, name, type, enum);
^
C:\Projects\Other\jaxp\source\gnu\xml\aelfred2\XmlParser.java:1643:
warning: as of release 1.5, 'enum' is a keyword, and may not be used as
an identifier
String enum
^
C:\Projects\Other\jaxp\source\gnu\xml\aelfred2\XmlParser.java:1686:
warning: as of release 1.5, 'enum' is a keyword, and may not be used as
an identifier
setAttribute (elementName, name, type, enum, value, valueType);
^
C:\Projects\Other\jaxp\source\gnu\xml\aelfred2\XmlParser.java:1689:
warning: as of release 1.5, 'enum' is a keyword, and may not be used as
an identifier
type = enum;
^
C:\Projects\Other\jaxp\source\gnu\xml\aelfred2\XmlParser.java:1691:
warning: as of release 1.5, 'enum' is a keyword, and may not be used as
an identifier
type = "NOTATION " + enum;
^
C:\Projects\Other\jaxp\source\gnu\xml\aelfred2\XmlParser.java:1694:
warning: as of release 1.5, 'enum' is a keyword, and may not be used as
an identifier
type = enum;
^
C:\Projects\Other\jaxp\source\gnu\xml\aelfred2\XmlParser.java:1696:
warning: as of release 1.5, 'enum' is a keyword, and may not be used as
an identifier
type = "NOTATION " + enum;
^