Extension interfaces feature does not support static inner classes
------------------------------------------------------------------
Key: XMLBEANS-392
URL: https://issues.apache.org/jira/browse/XMLBEANS-392
Project: XMLBeans
Issue Type: Improvement
Components: Compiler
Affects Versions: Version 2.4
Environment: Windows XP SP3, java 1.4
Reporter: Dariusz Kordonski
I tried to generate source Java files from WSDL, using custom .xsdconfig file
and <extension> element. The extension pointed to static inner class as the
'staticHandler'. I defined it using fully qualified name:
org.some.package.OuterClass$InnerClass. Everything compile fine except that
generated sources were referring to the handler using the same name:
org.some.package.OuterClass$InnerClass.implementedMethod(...), which is
obviously a bug, because it won't compile. The proper cgenerated code would be:
org.some.package.OuterClass.InnerClass.implementedMethod(...) ('.' instead of
'$' as separator between outer and inner class). I tried to put
org.some.package.OuterClass.InnerClass as staticHandler in the .xsdconfig file,
but that led to NullPointerException somewhere withing XmlBeans code generator.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]