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

Extension interfaces feature does not support static inner classes

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Version 2.4
    • Fix Version/s: None
    • Component/s: Compiler
    • Labels:
      None
    • Environment:
      Windows XP SP3, java 1.4

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kordzik Dariusz Kordonski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: