[ 
https://issues.apache.org/jira/browse/TUSCANY-1055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ki Park updated TUSCANY-1055:
-----------------------------

        Fix Version/s:     (was: Java-SDO-Mx)
    Affects Version/s:     (was: Java-SDO-Mx)

I've attached a patch which resolves this problem by updating 
DataFactoryImpl.java and added an extra !type.isAbstract() check before 
creating a DataObject.

> DataFactory.create(abstract_type) should throw an IllegalArgumentException
> --------------------------------------------------------------------------
>
>                 Key: TUSCANY-1055
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1055
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>         Environment: You should see this error in any environment. 
>            Reporter: Ki Park
>            Priority: Minor
>         Attachments: TUSCANY-1055.patch
>
>
> Use an Abstract type as a parameter of DataObject.create() and it works fine 
> now without any exception, but it should throw an exception.
> According to the spec in section 3.7.2 Creating Data Objects, it reads:
>   - Type.dataType and abstract must be both fase.
>   - Throw an IllegalArgumentException if the instanceClass does not 
> correspond to a Type this factory can instantiate.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://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]

Reply via email to