[
http://issues.apache.org/jira/browse/TUSCANY-578?page=comments#action_12454700
]
Kelvin Goodson commented on TUSCANY-578:
----------------------------------------
Transferring in TUSCANY-951
here's the report
==========================
Calling set() with an invalid property name results in a NullPointerException.
For example:
dataObject.setInt("invalidProperty", 5);
results in:
java.lang.NullPointerException
at
org.apache.tuscany.sdo.util.DataObjectUtil.getSetValue(DataObjectUtil.java:1440)
at org.apache.tuscany.sdo.util.DataObjectUtil.setInt(DataObjectUtil.java:537)
at org.apache.tuscany.sdo.impl.DataObjectImpl.setInt(DataObjectImpl.java:526)
===========================
and my duplicated comments ....
===========================
...... the spec isn't specific about the type of exception that should be
thrown in this case, and the changes made under TUSCANY-885 have altered the
behaviour of the tuscany implementation without violating the spec. We need
to review in general whether we should take the performance hit of catching and
translating Exceptions to be more specific about issues.
===========================
> Exceptions thrown by SDO runtime not the same as defined in the spec
> --------------------------------------------------------------------
>
> Key: TUSCANY-578
> URL: http://issues.apache.org/jira/browse/TUSCANY-578
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Affects Versions: Java-M2
> Reporter: Brian Murray
> Priority: Minor
> Fix For: Java-Mx
>
> Attachments: DataObjectUtil.patch
>
>
> On page 27 of V2.01 of the spec, specific exceptions are listed for certain
> kinds of errors. In some cases, a different exception is thrown (each case
> will be added as a subtask). Either the specification or the implementation
> should be updated.
--
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]