mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-16 13:25:34 +00:00
Merge
This commit is contained in:
commit
6484016211
@ -486,7 +486,7 @@ public final class TemplatesImpl implements Templates, Serializable {
|
||||
ModuleDescriptor descriptor =
|
||||
ModuleDescriptor.newModule(mn, Set.of(ModuleDescriptor.Modifier.SYNTHETIC))
|
||||
.requires("java.xml")
|
||||
.exports(pn)
|
||||
.exports(pn, Set.of("java.xml"))
|
||||
.build();
|
||||
|
||||
Module m = createModule(descriptor, loader);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2017, 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
|
||||
@ -270,7 +270,7 @@ class FactoryFinder {
|
||||
"Failed to read factoryId '" + factoryId + "'", se);
|
||||
}
|
||||
|
||||
// Try read $java.home/lib/stax.properties followed by
|
||||
// Try read $java.home/conf/stax.properties followed by
|
||||
// $java.home/conf/jaxp.properties if former not present
|
||||
String configFile = null;
|
||||
try {
|
||||
@ -278,7 +278,7 @@ class FactoryFinder {
|
||||
synchronized (cacheProps) {
|
||||
if (firstTime) {
|
||||
configFile = ss.getSystemProperty("java.home") + File.separator +
|
||||
"lib" + File.separator + "stax.properties";
|
||||
"conf" + File.separator + "stax.properties";
|
||||
final File fStax = new File(configFile);
|
||||
firstTime = false;
|
||||
if (ss.doesFileExist(fStax)) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2004, 2017, 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
|
||||
@ -176,9 +176,9 @@ class XPathFactoryFinder {
|
||||
|
||||
String javah = ss.getSystemProperty( "java.home" );
|
||||
String configFile = javah + File.separator +
|
||||
"lib" + File.separator + "jaxp.properties";
|
||||
"conf" + File.separator + "jaxp.properties";
|
||||
|
||||
// try to read from $java.home/lib/jaxp.properties
|
||||
// try to read from $java.home/conf/jaxp.properties
|
||||
try {
|
||||
if(firstTime){
|
||||
synchronized(cacheProps){
|
||||
@ -193,7 +193,7 @@ class XPathFactoryFinder {
|
||||
}
|
||||
}
|
||||
final String factoryClassName = cacheProps.getProperty(propertyName);
|
||||
debugPrintln(()->"found " + factoryClassName + " in $java.home/jaxp.properties");
|
||||
debugPrintln(()->"found " + factoryClassName + " in $java.home/conf/jaxp.properties");
|
||||
|
||||
if (factoryClassName != null) {
|
||||
xpathFactory = createInstance(factoryClassName, true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user