United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8019853 : Break logging and AWT circular dependency

Details
Type:
Enhancement
Submit Date:
2013-07-03
Status:
Closed
Updated Date:
2014-01-28
Project Name:
JDK
Resolved Date:
2013-09-04
Component:
core-libs
OS:
Sub-Component:
java.util.logging
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
7u25
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Duplicate:
Relates:
Relates:

Sub Tasks

Description
TimeZone and logging are the two core libraries components that maintain a global state across a running JVM and was not designed for applets isolation.   To support applets isolation, the implementation has changed to maintain per-AppContext content that introduced the dependency from core-libs to sun.awt.AppContext class through sun.misc.JavaAWTAccess.

Logging uses AWT and timezone whereas AWT uses logging that will call timezone for the default log message format.  This circular dependency is error-prone and hard to diagnose (JDK-8014718).

JDK-8001029 will remove the dependency on AppContext.  This bug is to break the logging / awt circular dependency on the lazy initialization of sun.awt.AppContext.


                                    

Comments
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/b3d6953b9829
User:  lana
Date:  2013-09-18 00:31:25 +0000

                                     
2013-09-18
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/b3d6953b9829
User:  dfuchs
Date:  2013-09-04 14:55:22 +0000

                                     
2013-09-04
See also test case in JDK-8023258 
                                     
2013-08-19



Hardware and Software, Engineered to Work Together