classpathx-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Classpathx-discuss] Don't use 'enum' in source files


From: Maarten Coene
Subject: [Classpathx-discuss] Don't use 'enum' in source files
Date: Thu, 29 Apr 2004 13:07:38 +0200
User-agent: Mozilla Thunderbird 0.5 (Windows/20040207)

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;
                                ^





reply via email to

[Prev in Thread] Current Thread [Next in Thread]