HHH-9885 The default ClassLoaderService implementation should handle java.lang.LinkageError
This commit is contained in:
parent
96d6365a64
commit
ea82d09101
|
@ -210,6 +210,8 @@ public class ClassLoaderServiceImpl implements ClassLoaderService {
|
||||||
}
|
}
|
||||||
catch (Exception ignore) {
|
catch (Exception ignore) {
|
||||||
}
|
}
|
||||||
|
catch (LinkageError ignore) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new ClassNotFoundException( "Could not load requested class : " + name );
|
throw new ClassNotFoundException( "Could not load requested class : " + name );
|
||||||
|
@ -226,6 +228,9 @@ public class ClassLoaderServiceImpl implements ClassLoaderService {
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
throw new ClassLoadingException( "Unable to load class [" + className + "]", e );
|
throw new ClassLoadingException( "Unable to load class [" + className + "]", e );
|
||||||
}
|
}
|
||||||
|
catch (LinkageError e) {
|
||||||
|
throw new ClassLoadingException( "Unable to load class [" + className + "]", e );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue