Format nits
This commit is contained in:
@@ -1417,7 +1417,7 @@ public abstract class LogFactory {
|
|||||||
logDiagnostic("Created object " + objectId(result) + " to manage classloader " +
|
logDiagnostic("Created object " + objectId(result) + " to manage classloader " +
|
||||||
objectId(contextClassLoader));
|
objectId(contextClassLoader));
|
||||||
}
|
}
|
||||||
return (LogFactory)result;
|
return (LogFactory) result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ public class LogFactoryImpl extends LogFactory {
|
|||||||
*/
|
*/
|
||||||
private static ClassLoader getContextClassLoaderInternal()
|
private static ClassLoader getContextClassLoaderInternal()
|
||||||
throws LogConfigurationException {
|
throws LogConfigurationException {
|
||||||
return (ClassLoader)AccessController.doPrivileged(
|
return (ClassLoader) AccessController.doPrivileged(
|
||||||
(PrivilegedAction) LogFactory::directGetContextClassLoader);
|
(PrivilegedAction) LogFactory::directGetContextClassLoader);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -956,7 +956,7 @@ public class LogFactoryImpl extends LogFactory {
|
|||||||
*/
|
*/
|
||||||
private ClassLoader getParentClassLoader(final ClassLoader cl) {
|
private ClassLoader getParentClassLoader(final ClassLoader cl) {
|
||||||
try {
|
try {
|
||||||
return (ClassLoader)AccessController.doPrivileged(
|
return (ClassLoader) AccessController.doPrivileged(
|
||||||
(PrivilegedAction) () -> cl.getParent());
|
(PrivilegedAction) () -> cl.getParent());
|
||||||
} catch (final SecurityException ex) {
|
} catch (final SecurityException ex) {
|
||||||
logDiagnostic("[SECURITY] Unable to obtain parent classloader");
|
logDiagnostic("[SECURITY] Unable to obtain parent classloader");
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ public class LoadTestCase extends TestCase{
|
|||||||
* Note that this test assumes that commons-logging.jar and log4j.jar
|
* Note that this test assumes that commons-logging.jar and log4j.jar
|
||||||
* are available via the system classpath.
|
* are available via the system classpath.
|
||||||
*/
|
*/
|
||||||
public void testInContainer()throws Exception{
|
public void testInContainer() throws Exception{
|
||||||
|
|
||||||
//problem can be in this step (broken app container or missconfiguration)
|
//problem can be in this step (broken app container or missconfiguration)
|
||||||
//1. Thread.currentThread().setContextClassLoader(ClassLoader.getSystemClassLoader());
|
//1. Thread.currentThread().setContextClassLoader(ClassLoader.getSystemClassLoader());
|
||||||
|
|||||||
Reference in New Issue
Block a user