Issue Details (XML | Word | Printable)

Key: JDO-81
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Michael Bouschen
Reporter: Michelle Caisse
Votes: 0
Watchers: 0
Operations

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

test org.apache.jdo.test.Test_EmpDeptAppId fails

Created: 13/Jul/05 01:02 AM   Updated: 01/Nov/05 06:48 AM
Return to search
Component/s: fostore2
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 12/Aug/05 05:59 AM


 Description  « Hide
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.532 sec
[junit] [ERROR] TEST org.apache.jdo.test.Test_EmpDeptAppId FAILED

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig Russell added a comment - 16/Jul/05 04:35 AM
Good luck.

Michael Bouschen added a comment - 12/Aug/05 05:59 AM
Test case Test_EmpDeptAppId because it calls the enhancer generated method jdoNewObjectIdInstance(Object). The signature of this method has been changed from String to Object from JDO1 to JDO2. The current version of the enhancer from enhancer20 generates a method body throwing an UnsupprotedOperationException which causes the test failure.

I changed the enhancer to generate the old code as it was generated for the JDO1 method jdoNewObjectIdInstance(String). I just added a cast expression for the Object argument before it is passed to the ObjectId constructor. This change is a workaround allowing the test to pass. It is not a full implementation of jdoNewObjectIdInstance, because it lacks support for single field identity.