[ 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]