Issue Details (XML | Word | Printable)

Key: JDO-55
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Craig Russell
Reporter: Michael Watzek
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

Inconsistency between API doc and spec

Created: 25/May/05 05:55 PM   Updated: 08/Dec/05 08:27 AM
Return to search
Component/s: api11, api2
Affects Version/s: None
Fix Version/s: JDO 2 beta

Time Tracking:
Not Specified

Resolution Date: 08/Dec/05 08:27 AM


 Description  « Hide
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.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #328086 Mon Oct 24 15:34:44 UTC 2005 clr JDO-55 Changed javadoc for getObjectById to throw JDOObjectNotFoundException instead of JDODataStoreException
Files Changed
MODIFY /incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java