You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org> on 2007/01/24 10:47:49 UTC

[jira] Resolved: (TUSCANY-1055) DataFactory.create(abstract_type) should throw an IllegalArgumentException

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

Kelvin Goodson resolved TUSCANY-1055.
-------------------------------------

    Resolution: Fixed

applied Ki's patch

> 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
>    Affects Versions: Java-SDO-Mx
>         Environment: You should see this error in any environment. 
>            Reporter: Ki Park
>            Priority: Minor
>             Fix For: Java-SDO-Mx
>
>         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.
-
You can reply to this email to add a comment to the issue online.


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