Skip to content

Commit

Permalink
fix error message and inline windows check
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang-Java committed Dec 3, 2024
1 parent 83f44f4 commit a4b3932
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public Object[][] getContents()
+ "To enable extension functions, set ''jdk.xml.enableExtensionFunctions'' to ''true''."},

{BasisLibrary.UNALLOWED_EXTENSION_ELEMENT_ERR,
"Use of the extension function ''{0}'' is not allowed when extension "
"Use of the extension element ''{0}'' is not allowed when extension "
+ "functions are disabled by the secure processing feature or "
+ "the property ''jdk.xml.enableExtensionFunctions''. "
+ "To enable extension functions, set ''jdk.xml.enableExtensionFunctions'' to ''true''."},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,9 @@
* This is an interface provide basic support for JAXP functional test.
*/
public class JAXPTestUtilities {
public static String CLS_DIR = System.getProperty("test.classes");
public static String SRC_DIR = System.getProperty("test.src");
public static boolean isWindows = false;
static {
if (System.getProperty("os.name").contains("Windows")) {
isWindows = true;
}
};

public static final String CLS_DIR = System.getProperty("test.classes");
public static final String SRC_DIR = System.getProperty("test.src");
public static final boolean isWindows = System.getProperty("os.name").contains("Windows");
/**
* Prefix for error message.
*/
Expand Down

0 comments on commit a4b3932

Please sign in to comment.