Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-191

XmlBeans does not respect reserved keyword 'strictfp'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Version 2, Version 2.1
    • Fix Version/s: Version 2.2.1
    • Component/s: Compiler
    • Labels:
      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>

        Attachments

        1. reservedWords.xsd
          8 kB
          Jacob Danner
        2. reservedWordPatch.patch
          0.5 kB
          Jacob Danner

          Activity

            People

            • Assignee:
              radup Radu Preotiuc
              Reporter:
              jacobd Jacob Danner
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: