Gili created Bug LOGBACK-885
Issue Type: Bug Bug
Affects Versions: 1.0.1
Assignee: Logback dev list
Components: logback-classic
Created: 18/Jul/13 9:38 PM
Description:

Logback does not run under Java7 update 40. The following exception is thrown:

java.lang.UnsupportedOperationException: This method is in the sun.* namespace so it is not a supported, public interface. The 7u40 release notes describe a temporary mechanism to reenable the historical functionality of this method. Update code to function properly and this method will be removed without further warning in a subsequent 7 update release.
	at sun.reflect.Reflection.getCallerClass(Reflection.java:71)
	at ch.qos.logback.classic.spi.PackagingDataCalculator.<clinit>(PackagingDataCalculator.java:42)
	at ch.qos.logback.classic.spi.ThrowableProxy.getPackagingDataCalculator(ThrowableProxy.java:135)
	at ch.qos.logback.classic.spi.ThrowableProxy.calculatePackagingData(ThrowableProxy.java:144)
	at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:127)
	at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:447)
	at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:403)
	at ch.qos.logback.classic.Logger.debug(Logger.java:526)

See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8014925 for more information.

To fix, the class initializer needs to catch and ignore java.lang.UnsupportedOperationException.

Environment:

Java 7 update 40

Project: logback
Priority: Blocker Blocker
Reporter: Gili
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira