8344419: Use StaticProperty in some JDK classes

Reviewed-by: alanb, rriggs
This commit is contained in:
Per Minborg 2024-11-26 12:07:26 +00:00
parent 3e509c8bd1
commit fc2da15bce
2 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -47,6 +47,7 @@ import java.util.zip.ZipInputStream;
import static java.nio.charset.StandardCharsets.UTF_8;
import jdk.internal.util.StaticProperty;
import sun.security.ssl.SSLLogger;
/**
@ -209,7 +210,7 @@ class DomainName {
new PrivilegedAction<>() {
@Override
public InputStream run() {
File f = new File(System.getProperty("java.home"),
File f = new File(StaticProperty.javaHome(),
"lib/security/public_suffix_list.dat");
try {
return new FileInputStream(f);