users@glassfish.java.net

[JPA] BUG in the class weaver

From: <glassfish_at_javadesktop.org>
Date: Wed, 15 Aug 2007 11:53:27 PDT

Hi,

I encountered a bug in the class weaver. In the next post, I will provide a test case which causes the bug to appear. In short, however, I'm getting errors like this:

[pre]
Exception in thread "Main Thread" java.lang.NoSuchMethodError: _toplink_getorder1
        at test.jpa.entities.OrderItem.getOrder1(OrderItem.java:49)
        at test.jpa.TestJPA.testBug1(TestJPA.java:845)
        at test.jpa.TestJPA.main(TestJPA.java:874)
[/pre]

Just to summarize, the error appears when there are two @ManyToOne relationships to one and the same Entity class and one of them is EAGER, while the other is LAZY.

The bug appears even with the latest GlassFish Release Candidate 2:
Oracle TopLink Essentials - 2.0 (Build b58a-rc2 (08/09/2007))

It appears both in Java SE and in Java EE (OC4J 10.1.3.3).

As I said, I will provide the test case in the next post.

Best regards,
Bisser
[Message sent by forum member 'vesuvius' (vesuvius)]

http://forums.java.net/jive/thread.jspa?messageID=231004