[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Created: (XMLBEANS-216) scomp does not give the correct error message when detecting that a i
From:       "Michael Skells (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2005-10-16 23:34:49
Message-ID: 57001755.1129505689365.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]

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


         Key: XMLBEANS-216
         URL: http://issues.apache.org/jira/browse/XMLBEANS-216
     Project: XMLBeans
        Type: Bug
  Components: Compiler  
    Versions: Version 2    
 Environment: run scomp wit a extension interface where the static handler does not \
exist  Reporter: Michael Skells
    Priority: Minor


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)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic