File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
src/java.base/share/classes/jdk/internal/vm Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -79,25 +79,6 @@ public static byte[] serializeAgentPropertiesToByteArray() throws IOException {
79
79
return serializePropertiesToByteArray (getAgentProperties ());
80
80
}
81
81
82
- /*
83
- * Returns true if the given JAR file has the Class-Path attribute in the
84
- * main section of the JAR manifest. Throws RuntimeException if the given
85
- * path is not a JAR file or some other error occurs.
86
- */
87
- public static boolean isClassPathAttributePresent (String path ) {
88
- try {
89
- Manifest man = (new JarFile (path )).getManifest ();
90
- if (man != null ) {
91
- if (man .getMainAttributes ().getValue (Attributes .Name .CLASS_PATH ) != null ) {
92
- return true ;
93
- }
94
- }
95
- return false ;
96
- } catch (IOException ioe ) {
97
- throw new RuntimeException (ioe .getMessage ());
98
- }
99
- }
100
-
101
82
/*
102
83
* Return the temporary directory that the VM uses for the attach
103
84
* and perf data files.
You can’t perform that action at this time.
0 commit comments