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

scomp does not give the correct error message when detecting that a interface class is missing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Version 2
    • Fix Version/s: None
    • Component/s: Compiler
    • Labels:
      None
    • Environment:
      run scomp wit a extension interface where the static handler does not exist

      Description

      scomp check for jClass.loadClass returning null. (line 82)
      In this situation it apears to return a UnresolvedClassImpl

      an NPE is accedently thrown later as the firther check to see if the class is an interface

      at org.apache.xmlbeans.impl.schema.StscState.get(StscState.java:1213)
      at org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfigImpl.java:289)
      at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateJava(InterfaceExtensionImpl.java:91)
      at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateInterface(InterfaceExtensionImpl.java:66)
      at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.newInstance(InterfaceExtensionImpl.java:38)
      at org.apache.xmlbeans.impl.config.BindingConfigImpl.recordExtensionSetting(BindingConfigImpl.java:234)
      at org.apache.xmlbeans.impl.config.BindingConfigImpl.<init>(BindingConfigImpl.java:109)
      at org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(BindingConfigImpl.java:69)
      at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:939)
      at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1067)
      at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mikeskells Michael Skells
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: