mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8211860: Avoid reading security properties eagerly on Manifest class initialization
Reviewed-by: mullan, alanb
This commit is contained in:
parent
8791ea8dc0
commit
d5d74f0e26
2 changed files with 5 additions and 5 deletions
|
@ -49,9 +49,6 @@ import sun.security.util.SecurityProperties;
|
|||
*/
|
||||
public class Manifest implements Cloneable {
|
||||
|
||||
private static final boolean jarInfoInExceptionText =
|
||||
SecurityProperties.includedInExceptions("jar");
|
||||
|
||||
// manifest main attributes
|
||||
private Attributes attr = new Attributes();
|
||||
|
||||
|
@ -203,10 +200,10 @@ public class Manifest implements Cloneable {
|
|||
}
|
||||
|
||||
static String getErrorPosition(String filename, final int lineNumber) {
|
||||
if (filename == null || !jarInfoInExceptionText) {
|
||||
if (filename == null ||
|
||||
!SecurityProperties.INCLUDE_JAR_NAME_IN_EXCEPTIONS) {
|
||||
return "line " + lineNumber;
|
||||
}
|
||||
|
||||
return "manifest of " + filename + ":" + lineNumber;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue