From ffe92dacfad674c20f03cc14336de2689cf1c899 Mon Sep 17 00:00:00 2001 From: Emmanuel Bernard Date: Wed, 23 Jun 2010 14:54:25 +0000 Subject: [PATCH] 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 --- core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java b/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java index 25b244a845..7a1a7ae595 100644 --- a/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java +++ b/core/src/main/java/org/hibernate/impl/SessionFactoryImpl.java @@ -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"); }