< prev index next >

test/tools/javac/versions/Versions.java

Print this page

        

*** 1,6 **** ! /* * Copyright (c) 2014, 2016, 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 * under the terms of the GNU General Public License version 2 only, as --- 1,6 ---- ! /* * Copyright (c) 2014, 2016, 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 * under the terms of the GNU General Public License version 2 only, as
*** 67,76 **** --- 67,77 ---- check("53.0"); check("53.0", "-source 1.6"); check("53.0", "-source 1.7"); check("53.0", "-source 1.8"); check("53.0", "-source 1.9"); + check("53.0", "-source 1.10"); check_source_target("50.0", "6", "6"); check_source_target("51.0", "6", "7"); check_source_target("51.0", "7", "7"); check_source_target("52.0", "6", "8");
*** 78,87 **** --- 79,89 ---- check_source_target("52.0", "8", "8"); check_source_target("53.0", "6", "9"); check_source_target("53.0", "7", "9"); check_source_target("53.0", "8", "9"); check_source_target("53.0", "9", "9"); + check_source_target("53.0", "10", "10"); checksrc16("-source 1.6"); checksrc16("-source 6"); checksrc16("-source 1.6", "-target 1.6"); checksrc16("-source 6", "-target 6");
*** 91,113 **** checksrc17("-source 7", "-target 7"); checksrc18("-source 1.8"); checksrc18("-source 8"); checksrc18("-source 1.8", "-target 1.8"); checksrc18("-source 8", "-target 8"); - checksrc19(); checksrc19("-source 1.9"); checksrc19("-source 9"); checksrc19("-source 1.9", "-target 1.9"); checksrc19("-source 9", "-target 9"); ! checksrc19("-target 1.9"); ! checksrc19("-target 9"); fail("-source 7", "-target 1.6", "Base.java"); fail("-source 8", "-target 1.6", "Base.java"); fail("-source 8", "-target 1.7", "Base.java"); fail("-source 9", "-target 1.7", "Base.java"); fail("-source 9", "-target 1.8", "Base.java"); fail("-source 1.5", "-target 1.5", "Base.java"); fail("-source 1.4", "-target 1.4", "Base.java"); fail("-source 1.3", "-target 1.3", "Base.java"); fail("-source 1.2", "-target 1.2", "Base.java"); --- 93,122 ---- checksrc17("-source 7", "-target 7"); checksrc18("-source 1.8"); checksrc18("-source 8"); checksrc18("-source 1.8", "-target 1.8"); checksrc18("-source 8", "-target 8"); checksrc19("-source 1.9"); checksrc19("-source 9"); checksrc19("-source 1.9", "-target 1.9"); checksrc19("-source 9", "-target 9"); ! ! checksrc110(); ! checksrc110("-source 1.10"); ! checksrc110("-source 10"); ! checksrc110("-source 1.10", "-target 1.10"); ! checksrc110("-source 10", "-target 10"); ! checksrc110("-target 1.10"); ! checksrc110("-target 10"); fail("-source 7", "-target 1.6", "Base.java"); fail("-source 8", "-target 1.6", "Base.java"); fail("-source 8", "-target 1.7", "Base.java"); fail("-source 9", "-target 1.7", "Base.java"); fail("-source 9", "-target 1.8", "Base.java"); + fail("-source 10", "-target 1.7", "Base.java"); + fail("-source 10", "-target 1.8", "Base.java"); fail("-source 1.5", "-target 1.5", "Base.java"); fail("-source 1.4", "-target 1.4", "Base.java"); fail("-source 1.3", "-target 1.3", "Base.java"); fail("-source 1.2", "-target 1.2", "Base.java");
*** 200,209 **** --- 209,223 ---- protected void checksrc19(String... args) { printargs("checksrc19", args); checksrc18(args); } + protected void checksrc110(String... args) { + printargs("checksrc110", args); + checksrc19(args); + } + protected void pass(String... args) { printargs("pass", args); List<String> jcargs = new ArrayList<String>(); jcargs.add("-Xlint:-options");
< prev index next >