--- a/src/java.base/share/classes/sun/security/x509/AVA.java Tue Aug 14 14:28:23 2018 +0200
+++ b/src/java.base/share/classes/sun/security/x509/AVA.java Tue Aug 14 22:39:34 2018 +0800
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2018, 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
@@ -64,9 +64,8 @@
// See CR 6391482: if enabled this flag preserves the old but incorrect
// PrintableString encoding for DomainComponent. It may need to be set to
// avoid breaking preexisting certificates generated with sun.security APIs.
- private static final boolean PRESERVE_OLD_DC_ENCODING =
- AccessController.doPrivileged(new GetBooleanAction
- ("com.sun.security.preserveOldDCEncoding"));
+ private static final boolean PRESERVE_OLD_DC_ENCODING = GetBooleanAction
+ .privilegedGetProperty("com.sun.security.preserveOldDCEncoding");
/**
* DEFAULT format allows both RFC1779 and RFC2253 syntax and