db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-55) Inconsistency between API doc and spec
Date Wed, 07 Dec 2005 00:52:11 GMT
     [ http://issues.apache.org/jira/browse/JDO-55?page=all ]

Craig Russell updated JDO-55:
-----------------------------

    Fix Version: JDO 2 beta
    Description: 
The API doc of PM.getObjectById defines that a JDODataStoreException might be thrown. The
spec defines that an JDOObjectNotFoundException might be thrown:

API doc:

If the <code>validate</code> flag is <code>true</code> ...
If the instance does not exist in the datastore, then a JDODataStoreException is thrown.

Spec:

If the validate flag is true:
...
If there is an instance already in the cache with the same jdo identity as the oid parameter,
the instance is not transactional, and the instance does not exist in the datastore, then
a JDOObjectNotFoundException is thrown. 


  was:
The API doc of PM.getObjectById defines that a JDODataStoreException might be thrown. The
spec defines that an JDOObjectNotFoundException might be thrown:

API doc:

If the <code>validate</code> flag is <code>true</code> ...
If the instance does not exist in the datastore, then a JDODataStoreException is thrown.

Spec:

If the validate flag is true:
...
If there is an instance already in the cache with the same jdo identity as the oid parameter,
the instance is not transactional, and the instance does not exist in the datastore, then
a JDOObjectNotFoundException is thrown. 


    Environment: 

> Inconsistency between API doc and spec
> --------------------------------------
>
>          Key: JDO-55
>          URL: http://issues.apache.org/jira/browse/JDO-55
>      Project: JDO
>         Type: Bug
>   Components: api20, api11
>     Reporter: Michael Watzek
>     Assignee: Craig Russell
>     Priority: Trivial
>      Fix For: JDO 2 beta

>
> The API doc of PM.getObjectById defines that a JDODataStoreException might be thrown.
The spec defines that an JDOObjectNotFoundException might be thrown:
> API doc:
> If the <code>validate</code> flag is <code>true</code> ...
> If the instance does not exist in the datastore, then a JDODataStoreException is thrown.
> Spec:
> If the validate flag is true:
> ...
> If there is an instance already in the cache with the same jdo identity as the oid parameter,
the instance is not transactional, and the instance does not exist in the datastore, then
a JDOObjectNotFoundException is thrown. 

-- 
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


Mime
View raw message