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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Works for Me
    • Version 2.2
    • Version 5.1.0
    • Compiler
    • None
    • 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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mortpa paul mortensen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: