Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Version 2, Version 2.1
-
None
Description
When I compile a schema that contains java reserved words, scomp fails compilation because it does not respect strictfp as a keyword.
Repro:
scomp the attached schema
Output:
scomp reservedWords.xsd
Time to build schema type system: 1.563 seconds
Time to generate code: 2.047 seconds
C:\WINDOWS\TEMP\xbean8327.d\src\org\apache\beehive\reservedWords\ReservedWordsTy
pe.java:1179: <identifier> expected
void setStrictfp(int strictfp);
^
C:\WINDOWS\TEMP\xbean8327.d\src\org\apache\beehive\reservedWords\ReservedWordsTy
pe.java:1179: ')' expected
void setStrictfp(int strictfp);
^
C:\WINDOWS\TEMP\xbean8327.d\src\org\apache\beehive\reservedWords\ReservedWordsTy
pe.java:1184: <identifier> expected
void xsetStrictfp(org.apache.xmlbeans.XmlInt strictfp);
^
C:\WINDOWS\TEMP\xbean8327.d\src\org\apache\beehive\reservedWords\ReservedWordsTy
pe.java:1184: ')' expected
void xsetStrictfp(org.apache.xmlbeans.XmlInt strictfp);
^
C:\WINDOWS\TEMP\xbean8327.d\src\org\apache\beehive\reservedWords\impl\ReservedWo
rdsTypeImpl.java:4014: <identifier> expected
public void setStrictfp(int strictfp)
^
C:\WINDOWS\TEMP\xbean8327.d\src\org\apache\beehive\reservedWords\impl\ReservedWo
rdsTypeImpl.java:5276: ')' expected
}
^
C:\WINDOWS\TEMP\xbean8327.d\src\org\apache\beehive\reservedWords\StrictfpDocumen
t.java:40: <identifier> expected
void setStrictfp(int strictfp);
^
C:\WINDOWS\TEMP\xbean8327.d\src\org\apache\beehive\reservedWords\StrictfpDocumen
t.java:40: ')' expected
void setStrictfp(int strictfp);
^
C:\WINDOWS\TEMP\xbean8327.d\src\org\apache\beehive\reservedWords\StrictfpDocumen
t.java:45: <identifier> expected
void xsetStrictfp(org.apache.xmlbeans.XmlInt strictfp);
^
C:\WINDOWS\TEMP\xbean8327.d\src\org\apache\beehive\reservedWords\StrictfpDocumen
t.java:45: ')' expected
void xsetStrictfp(org.apache.xmlbeans.XmlInt strictfp);
^
C:\WINDOWS\TEMP\xbean8327.d\src\org\apache\beehive\reservedWords\impl\StrictfpDo
cumentImpl.java:77: <identifier> expected
public void setStrictfp(int strictfp)
^
C:\WINDOWS\TEMP\xbean8327.d\src\org\apache\beehive\reservedWords\impl\StrictfpDo
cumentImpl.java:127: ')' expected
}
^
12 errors
BUILD FAILED
D:\svn\xmlbeans\trunk>