Skip to content

Commit a4b3932

Browse files
committed
fix error message and inline windows check
1 parent 83f44f4 commit a4b3932

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public Object[][] getContents()
281281
+ "To enable extension functions, set ''jdk.xml.enableExtensionFunctions'' to ''true''."},
282282

283283
{BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
284-
"Use of the extension function ''{0}'' is not allowed when extension "
284+
"Use of the extension element ''{0}'' is not allowed when extension "
285285
+ "functions are disabled by the secure processing feature or "
286286
+ "the property ''jdk.xml.enableExtensionFunctions''. "
287287
+ "To enable extension functions, set ''jdk.xml.enableExtensionFunctions'' to ''true''."},

test/jaxp/javax/xml/jaxp/libs/jaxp/library/JAXPTestUtilities.java

+3-9
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,9 @@
6161
* This is an interface provide basic support for JAXP functional test.
6262
*/
6363
public class JAXPTestUtilities {
64-
public static String CLS_DIR = System.getProperty("test.classes");
65-
public static String SRC_DIR = System.getProperty("test.src");
66-
public static boolean isWindows = false;
67-
static {
68-
if (System.getProperty("os.name").contains("Windows")) {
69-
isWindows = true;
70-
}
71-
};
72-
64+
public static final String CLS_DIR = System.getProperty("test.classes");
65+
public static final String SRC_DIR = System.getProperty("test.src");
66+
public static final boolean isWindows = System.getProperty("os.name").contains("Windows");
7367
/**
7468
* Prefix for error message.
7569
*/

0 commit comments

Comments
 (0)