-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate 4.3.0.CR1 dependent on JDK 7?
PostPosted: Fri Nov 29, 2013 10:35 am 
Newbie

Joined: Fri Nov 29, 2013 10:20 am
Posts: 1
Hi,

Just to confirm. We just upgraded from 4.2.7.SP1 to 4.3.0.CR1 and I notice that my container (JBoss Fuse 6) suddenly don't like Hibernate anymore. The reason seems to be a new dependency to Java 7. Is this intentional?

The code in question that breaks Java 6 is in org.hibernate.osgi.OsgiClassLoader. The method "getClassLoadingLock" is not available in Java 6, but it is in Java 7.

ClassLoader Java6: http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html
ClassLoader Java7: http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html

org.hibernate.osgi.OsgiClassLoader from 4.3.0.CR1:
Code:
   @Override
   @SuppressWarnings("rawtypes")
   protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
      synchronized (getClassLoadingLock(name)) {
         if ( classCache.containsKey( name ) ) {
            return classCache.get( name );
         }


Top
 Profile  
 
 Post subject: Re: Hibernate 4.3.0.CR1 dependent on JDK 7?
PostPosted: Mon Dec 02, 2013 8:58 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Drat, looks like so: https://hibernate.atlassian.net/browse/HHH-8759

Glad you caught that before CR2/Final though, thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.