RFR: JDK-8261237: isClassPathAttributePresent use try with resources with JarFile

Claes Redestad redestad at openjdk.java.net
Mon Feb 8 16:44:42 UTC 2021


On Mon, 8 Feb 2021 14:25:45 GMT, Christoph Langer <clanger at openjdk.org> wrote:

>> src/java.base/share/classes/jdk/internal/vm/VMSupport.java line 87:
>> 
>>> 85:      * path is not a JAR file or some other error occurs.
>>> 86:      */
>>> 87:     public static boolean isClassPathAttributePresent(String path) {
>> 
>> Is isClassPathAttributePresent used anywhere? I remember we added VMSupport for use by JVMTI and the attach mechanism but I don't see any usages of this method now.
>
> Seems you're right. My search for "isClassPathAttributePresent" also didn't yield anything. So why not remove it altogether...?

Removing it sounds good.

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

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


More information about the core-libs-dev mailing list