You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Craig Russell (JIRA)" <ji...@apache.org> on 2005/10/24 17:36:56 UTC

[jira] Closed: (JDO-55) Inconsistency between API doc and spec

     [ http://issues.apache.org/jira/browse/JDO-55?page=all ]
     
Craig Russell closed JDO-55:
----------------------------

    Resolution: Fixed
     Assign To: Craig Russell

The javadoc was updated to reflect that JDOObjectNotFoundException is thrown in cases where the object does not exist.

Committed revision 328086.

> 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

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