-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate EJB3/JPA and 1.4
PostPosted: Mon Mar 06, 2006 2:02 pm 
Newbie

Joined: Thu Mar 02, 2006 11:46 am
Posts: 1
I've been spending some time getting Hiberbnate's JPA implementation working with 1.4, and I can run all the JUnit test cases now without errors (excepting the three errors I get out of the box).

I use an automatic bytecode rewriting tool (i.e. Retroweaver), and the only real problem I had was that org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses is using the new 1.5 chained exception constructor for IllegalArgumentException:

Code:
if ( pkg == null ) {
  throw new IllegalArgumentException( "class or package not found: ", cnfe );
}


There are ways for me to work around this, but the simplest method is just for the Hibernate team to rewrite this code using the 1.4 constructor.

So, the broader question I have, is:

In general, how would the Hibernate team feel about trying to avoid 1.5 specific APIs in their implementation of JPA? Seeing as the team already strives to keep the core of Hibernate compatible with earlier JDK versions, it would be super nice if the same approach could be used for JPA.


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

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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.