The following comment has been added to this issue:

     Author: Alexander Traud
    Created: Fri, 21 Jan 2005 11:27 AM
       Body:
Even worse, Beta3c uses the first method with the specified name - at least 
with my Java compiler. So even if your class contains a (overloaded) valid 
method with the correct parameter, the first found will be used.

Just my two cents on this issue. This should get a higher priority in my 
opionion.
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/JIBX-3?page=comments#action_29128

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/JIBX-3

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JIBX-3
    Summary: Runtime ClassCastException when set-method takes wrong type.
       Type: Bug

     Status: Open
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: JiBX
 Components: 
             core
   Versions:
             1.0-beta3a

   Assignee: Dennis Sosnoski
   Reporter: Dennis Sosnoski

    Created: Sat, 27 Mar 2004 12:45 PM
    Updated: Fri, 21 Jan 2005 11:27 AM

Description:
JiBX appears to improperly check the type accepted by a set-method. In the case 
of this binding:

        <mapping class="cap.data.Terminal" extends="cap.data.Rule" 
name="Terminal">
                <structure map-as="cap.data.Rule"/>
                <value get-method="getToken" name="token" set-method="setToken" 
style="attribute"/>
                <value get-method="getTokenType" name="tokenType" 
set-method="setTerminalType" style="attribute"/>
        </mapping>

the setTerminalType() method actually expected an enumeration type and not a 
String. JiBX generated a cast without checking that the types were compatible. 
It should check this at binding time and report an error when the types don't 
match.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to