Remove code that accounts for Java 1.1 and 1.2
Didn't get quite right in the previous commit
This commit is contained in:
@@ -173,7 +173,7 @@ public class SimpleLog implements Log, Serializable {
|
|||||||
// Get the thread context class loader (if there is one)
|
// Get the thread context class loader (if there is one)
|
||||||
try {
|
try {
|
||||||
classLoader = Thread.currentThread().getContextClassLoader();
|
classLoader = Thread.currentThread().getContextClassLoader();
|
||||||
} catch (final SecurityException e) {
|
} catch (final RuntimeException e) {
|
||||||
/**
|
/**
|
||||||
* getContextClassLoader() throws SecurityException when the context class loader isn't an ancestor of the calling class's class loader, or if
|
* getContextClassLoader() throws SecurityException when the context class loader isn't an ancestor of the calling class's class loader, or if
|
||||||
* security permissions are restricted.
|
* security permissions are restricted.
|
||||||
@@ -183,8 +183,10 @@ public class SimpleLog implements Log, Serializable {
|
|||||||
*/
|
*/
|
||||||
// Capture 'e.getTargetException()' exception for details
|
// Capture 'e.getTargetException()' exception for details
|
||||||
// alternate: log 'e.getTargetException()', and pass back 'e'.
|
// alternate: log 'e.getTargetException()', and pass back 'e'.
|
||||||
|
if (!(e instanceof SecurityException)) {
|
||||||
throw new LogConfigurationException("Unexpected SecurityException", e);
|
throw new LogConfigurationException("Unexpected SecurityException", e);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (classLoader == null) {
|
if (classLoader == null) {
|
||||||
classLoader = SimpleLog.class.getClassLoader();
|
classLoader = SimpleLog.class.getClassLoader();
|
||||||
|
|||||||
Reference in New Issue
Block a user