RFR: 8273101: Eliminate the usage of threadgroup sandboxing in the java.util.logging

Sergey Bylokhov serb at openjdk.java.net
Fri Sep 3 22:17:56 UTC 2021


On Thu, 2 Sep 2021 09:59:51 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> The "java.util.logging.LogManager" class uses the "threadgroup sandboxing" via an AppContext to support "applet logging isolation". The AppContext class became useless since the plugin and webstart are no longer supported and removed in jdk11.
>> 
>> This is the request to delete the usage of AppContext in the LogManager and related tests.
>> 
>> Tested by tier1/tier2/tier3 and jdk_desktop tests.
>
> test/jdk/java/util/logging/TestLoggingWithMainAppContext.java line 1:
> 
>> 1: /*
> 
> Humm... There's no direct reference to AppContext here. Maybe this test should be preserved?

It uses it indirectly, the next line under security manager trigger creation of the appcontext:
`ImageIO.read(is); // triggers calls to system loggers & creation of main AppContext`

but I can preserve/rename it for sure.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5326


More information about the security-dev mailing list