8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test 26 * @bug 8005280 8004371 27 * @summary Compatibility test 28 * @run main CompatibilityTest 29 * @run main/othervm -Dsun.util.spi.XmlPropertiesProvider=jdk.internal.util.xml.BasicXmlPropertiesProvider CompatibilityTest 30 */ 31 32 import java.io.FileInputStream; 33 import java.io.IOException; 34 import java.io.InputStream; 35 import java.util.Properties; 36 37 /** 38 * This is a behavior compatibility test. 39 * Although not defined by the properties.dtd, the constructs 40 * in Compatibility.xml are supported by the regular JDK XML 41 * Provider. 42 * 43 * @author: Joe Wang 44 */ 45 public class CompatibilityTest { 46 47 public static void main(String[] args) { 48 testInternalDTD(); 49 } | 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test 26 * @bug 8005280 8004371 27 * @summary Compatibility test 28 */ 29 30 import java.io.FileInputStream; 31 import java.io.IOException; 32 import java.io.InputStream; 33 import java.util.Properties; 34 35 /** 36 * This is a behavior compatibility test. 37 * Although not defined by the properties.dtd, the constructs 38 * in Compatibility.xml are supported by the regular JDK XML 39 * Provider. 40 * 41 * @author: Joe Wang 42 */ 43 public class CompatibilityTest { 44 45 public static void main(String[] args) { 46 testInternalDTD(); 47 } |