HHH-5329 Consider NoClasDefFoundError as a sign of not having Java 5 and concurrent package

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19798 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Emmanuel Bernard 2010-06-23 14:54:25 +00:00
parent e7dce75a9f
commit ffe92dacfa
1 changed files with 2 additions and 0 deletions

View File

@ -207,6 +207,8 @@ public final class SessionFactoryImpl implements SessionFactory, SessionFactoryI
Constructor constructor = concurrentStatsClass.getConstructor(new Class[]{SessionFactoryImplementor.class});
concurrentStatistics = (Statistics) constructor.newInstance(new Object[]{this});
log.trace("JDK 1.5 concurrent classes present");
} catch ( NoClassDefFoundError noJava5 ) {
log.trace("JDK 1.5 concurrent classes missing");
} catch (Exception noJava5) {
log.trace("JDK 1.5 concurrent classes missing");
}