On Fri, 18 Mar 2022 04:01:05 GMT, Jiangli Zhou <[email protected]> wrote:

>> This change removes support for 
>> `-Dsun.misc.URLClassPath.disableJarChecking`. As discussed in the bug the 
>> feature doesn't current work, and only ever supported scenarios where a 
>> security manager is installed, so it seems safe to remove.
>
> src/java.base/share/classes/jdk/internal/loader/URLClassPath.java line 806:
> 
>> 804: 
>> 805:         /* Throws if the given jar file is does not start with the 
>> correct LOC */
>> 806:         @SuppressWarnings("removal")
> 
> I noticed the @SuppressWarnings("removal") when looking at the PR. It is 
> added by 
> https://github.com/openjdk/jdk/commit/6765f902505fbdd02f25b599f942437cd805cad1
>  for [JDK-8266459](https://bugs.openjdk.java.net/browse/JDK-8266459). So 
> looks like the method has been targeted for deprcating/removal.

Right, the suppression is for the use of `getSecurityManager` here.

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

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

Reply via email to