[ http://jira.codehaus.org/browse/JIBX-3?page=history ]
Dennis Sosnoski resolved JIBX-3:
--------------------------------
Fix Version: CVS
Resolution: Fixed
> Runtime ClassCastException when set-method takes wrong type.
> ------------------------------------------------------------
>
> Key: JIBX-3
> URL: http://jira.codehaus.org/browse/JIBX-3
> Project: JiBX
> Type: Bug
> Components: core
> Versions: 1.0-beta3a
> Reporter: Dennis Sosnoski
> Assignee: Dennis Sosnoski
> Priority: Minor
> Fix For: CVS
>
>
> 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.
--
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 Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs