-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: EJB 3 Compile Problems
PostPosted: Tue Jan 24, 2006 11:14 pm 
Newbie

Joined: Tue Jan 24, 2006 11:09 pm
Posts: 1
Location: Melbourne, Australia
After upgrading to the latest annotations we are getting the following problems compiling. This is via an Ant javac task on both Windows XP and Fedora Core 4, JDK 1.5.0_06

Hibernate version: hibernate-annotations-3.1beta8

Full stack trace of any exception that occurs:
[javac] An exception has occurred in the compiler (1.5.0_06). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
[javac] java.lang.AssertionError: cannot find method javax.persistence.Embeddable.access()


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 25, 2006 11:27 am 
Newbie

Joined: Tue Jan 03, 2006 7:30 am
Posts: 18
Location: Budapest, Hungary
According to this, the "access" attribute was removed from the class annotations (@Entity, @Embeddable and @MappedSuperclass), as the access type is now detected automatically.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 25, 2006 3:11 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
scall, report it to Sun anyway, this is bad.

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Still compiles badly
PostPosted: Thu Jan 26, 2006 6:43 pm 
Newbie

Joined: Thu Jan 26, 2006 6:29 pm
Posts: 1
I noticed that even when you don't specify the access type in the @Entity annotation and leave it to auto detect your choice, it will still throw a compiler error. This is a really serious issue, because you literaly can't use the @Entity annotation without getting a compile error.


Top
 Profile  
 
 Post subject: Re: Still compiles badly
PostPosted: Fri Jan 27, 2006 5:04 am 
Newbie

Joined: Tue Jan 03, 2006 7:30 am
Posts: 18
Location: Budapest, Hungary
bermudahex wrote:
I noticed that even when you don't specify the access type in the @Entity annotation and leave it to auto detect your choice, it will still throw a compiler error. This is a really serious issue, because you literaly can't use the @Entity annotation without getting a compile error.

It certainly does work for me. You probably have incompatible jars, like HA beta8 with the ejb3-persistence.jar from HA beta7 or the other way round. If that's not the case, could you post the error message you are seeing?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.