HHH-9885 The default ClassLoaderService implementation should handle java.lang.LinkageError

This commit is contained in:
Sanne Grinovero 2015-06-26 11:23:27 +01:00
parent 96d6365a64
commit ea82d09101
1 changed files with 5 additions and 0 deletions

View File

@ -210,6 +210,8 @@ public class ClassLoaderServiceImpl implements ClassLoaderService {
}
catch (Exception ignore) {
}
catch (LinkageError ignore) {
}
}
throw new ClassNotFoundException( "Could not load requested class : " + name );
@ -226,6 +228,9 @@ public class ClassLoaderServiceImpl implements ClassLoaderService {
catch (Exception e) {
throw new ClassLoadingException( "Unable to load class [" + className + "]", e );
}
catch (LinkageError e) {
throw new ClassLoadingException( "Unable to load class [" + className + "]", e );
}
}
@Override