You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Brent Daniel (JIRA)" <tu...@ws.apache.org> on 2006/07/26 21:30:14 UTC

[jira] Updated: (TUSCANY-581) IllegalArgumentException when expecting ClassCastException

     [ http://issues.apache.org/jira/browse/TUSCANY-581?page=all ]

Brent Daniel updated TUSCANY-581:
---------------------------------

    Priority: Minor  (was: Major)

Reduced priority to "Minor" based on Brian's request. 

> IllegalArgumentException when expecting ClassCastException
> ----------------------------------------------------------
>
>                 Key: TUSCANY-581
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-581
>             Project: Tuscany
>          Issue Type: Sub-task
>          Components: Java SDO Implementation
>            Reporter: Brian Murray
>            Priority: Minor
>
> In V2.01 (dated November 2005) of the SDO specification it is stated in the table on page 28 that a ClassCastException is expected when get cannot convert from a value to the requested type. However, in many instances an IllegalArgumentException is instead thrown.
> Here is the example explicitly mentioned in the table as throwing a ClassCastException (getDate on a float value), however an IllegalArgumentException is seen in the test case.
>    // IllegalArgumentException when expecting ClassCastException
>    test_obj.setFloat("floatVal", Float.MAX_VALUE);
>    test_obj.getDate("floatVal");

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org