Issue Details (XML | Word | Printable)

Key: JDO-413
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Craig Russell
Reporter: Marc Prud'hommeaux
Votes: 0
Watchers: 0
Operations

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

NoAccessToFieldsAfterPredelete incorrectly mandates that field access to deleted instances will cause an error

Created: 30/Aug/06 07:16 AM   Updated: 03/Oct/06 09:52 PM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 final
Fix Version/s: JDO 2 maintenance release 1, JDO 2 TCK challenge fixes

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works NoAccessToFieldsAfterPredelete.java.patch 2006-08-30 07:18 AM Marc Prud'hommeaux 4 kB

Resolution Date: 03/Oct/06 09:52 PM


 Description  « Hide
org.apache.jdo.tck.api.instancecallbacks.NoAccessToFieldsAfterPredelete has 7 checks that assert that field access to fields in deleted instances will throw a JDOUserException, but section 5.5.7 only suggests that it *might* throw a JDOUserException: "Any other access to persistent fields is not supported and might throw a JDOUserException." The checks should not be there. The attached patch removes them.




 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig Russell added a comment - 28/Sep/06 11:50 AM
This issue is correct. The checks are not consistent with the JDO 2.0 specification. The patch is correct.

We should revisit this issue for JDO 2.1 to see if it makes sense for the checks to be added if the implementation is BinaryCompatible, or if another PersistenceManagerFactory flag would be suitable.

If there are no other comments, I'll check in the patch.

Craig Russell added a comment - 03/Oct/06 09:45 PM
svn commit -m "JDO-413 updated test to allow either exception or not for field access after preDelete" src/java/org/apache/jdo/tck/api/instancecallbacks/NoAccessToFieldsAfterPredelete.java
Sending src/java/org/apache/jdo/tck/api/instancecallbacks/NoAccessToFieldsAfterPredelete.java
Transmitting file data .
Committed revision 452640.

Craig Russell added a comment - 03/Oct/06 09:52 PM
svn commit -m "JDO-413 updated test to allow either exception or not for field access after preDelete" ../../branches/2.0.1/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks
Sending branches/2.0.1/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/NoAccessToFieldsAfterPredelete.java
Transmitting file data .
Committed revision 452641.

The patch has been committed to the trunk and branch 2.0.1