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

method name conflicts when using javascource 1.5 for elements: compInfo (unbounded) and compInfoList, a method is created named getCompInfoList

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Version 2.2
    • Fix Version/s: None
    • Component/s: Compiler
    • Labels:
      None
    • Environment:
      Windows 2k

      Description

      When attempting to compile an XSD using the javascource 1.5 that contains two elements named,compInfo (unbounded) and comInfoList, a duplicate method name is created.

      Since the compInfo element can return a list of elements the resulting java source creates a method named "List getCompInfoList()" . However because there is also an element name "compInfoList" another method "CompInfoList getCompInfoList()" is created. This of course creates a conflict in the resulting file.

        Attachments

        1. s2sComp.xsd
          12 kB
          paul mortensen

          Activity

            People

            • Assignee:
              cezar Cezar Cristian Andrei
              Reporter:
              mortpa paul mortensen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: