[ http://jira.codehaus.org/browse/JIBX-3?page=history ] Dennis Sosnoski closed JIBX-3: ------------------------------
> 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: 1.0-RC0 > > > 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 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ jibx-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-devs
