RFR: 8019853 - Break logging and AWT circular dependency

Mandy Chung mandy.chung at oracle.com
Fri Aug 30 03:14:50 UTC 2013


Hi Daniel,

Thanks for getting this fixed.  The change looks good.  The 
JavaAWTContext.getAppletContext implementation looks good and clean 
(thanks to your comments).  It'd be good to get AWT team to review 
AppContext.java change (cc'ing Artem).

Mandy

On 8/29/2013 1:13 PM, Daniel Fuchs wrote:
> Hi,
>
> Please find below a changeset that will fix:
>
> 8019853 - Break logging and AWT circular dependency
>
> (which also duplicates
>  8023258 Logger.getLogger() after ImageIO.read() returns
>          different logger instance)
>
> <http://cr.openjdk.java.net/~dfuchs/webrev_8019853/webrev.00/>
>
> The new code makes sure that JavaAWTAccess.getAppletContext() returns
> null when the LogManager's default userContext should be used, thus
> solving 8023258 (Logger.getLogger() after ImageIO.read() returns
> different logger instance).
> Although LogManager still needs to get the applet context it will no
> longer trigger the creation of the 'mainAppContext' - thus breaking
> the circular dependency.
>
> best regards,
>
> -- daniel




More information about the core-libs-dev mailing list