In debugging some OpenJPA code, I have found some strange behavior I am at a loss to explain.
I am debugging JUnit tests in Eclipse using VM Arg javaagent:<directory>/openjpa-2.2.0.jar to do runtime enhancement. Code for the constructor is: When I step into my constructor to create a JPA object, i notice there are 2 (!) pcVersionInit fields defined in the debugger. Why is this showing up 2x? Additionally, what is even stranger behavior I see during initialization...In the constructor I have lines commented out that are basically externalized in a fromJaxb() method. If the logic for the property assignment happens directly in the constructor - then both pcInitVersion fields are false. HOWEVER, if I call an external method to perform the exact same logic - one of the pcInitVersion fields is false - and another is set to true. Furthermore, I am then unable to persist this object because OpenJPA things its a detached entity?! Any help would be appreciated. -- View this message in context: http://openjpa.208410.n2.nabble.com/pcVersionInit-exhibits-strange-behavior-tp7580968.html Sent from the OpenJPA Users mailing list archive at Nabble.com.