jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JiBX
  • JIBX-387

iter-method must be an Iterator, if a derived Iterator is used binding compiler exits with error "iter-method ... not found"

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: JiBX 1.1, JiBX 1.1.2, JiBX 1.1.3, JiBX 1.1.4, JiBX 1.1.5, JiBX 1.1.6, JiBX 1.2 beta 1, JiBX 1.2, JiBX 1.2.1, JiBX 1.2.2
  • Fix Version/s: JiBX 1.2.3
  • Component/s: core
  • Labels:
    None
  • Patch Submitted:
    Yes

Description

If one uses a derived java.util.Iterator the binding compiler exits with error "iter - method ... not found". The reason for the error is located within the class "CollectionElement.java" and the method "prevalidate". Here the use of method "clas.getBestMethod(iname,"java.util.Iterator", new String[0])" is not usable because it doesn't handle derived Iterators.

During unmarshalling the method "unmarshallStructure" within BindingBuilder.java gets the iter - method only with Iterator - signatur. In order to get it to work I changed the getMethod to an empty signatur. The validity check is already done during binding compile in above method.
The case of an enumeration was deleted because it was'nt allowed during prevalidate. The documentation should be changed accordingly.

The changes are attached and were successfully testet with the jibx - build.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Java Source File
    BindingBuilder.java
    28/Jun/10 12:13 PM
    98 kB
    Mathias Hendrich
  2. Java Source File
    CollectionElement.java
    28/Jun/10 12:13 PM
    29 kB
    Mathias Hendrich

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    Mathias Hendrich
Vote (0)
Watch (0)

Dates

  • Created:
    28/Jun/10 12:13 PM
    Updated:
    28/Jun/10 12:13 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.