Repository: ant
Updated Branches:
  refs/heads/master 06c4fc609 -> 54f96c90a


javac defaults to -source 1.9 with 1.9.0-ea-b49


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/54f96c90
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/54f96c90
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/54f96c90

Branch: refs/heads/master
Commit: 54f96c90ab1578ca493048afc07e76e87ebd1d46
Parents: 06c4fc6
Author: Stefan Bodewig <[email protected]>
Authored: Fri Feb 13 10:40:52 2015 +0100
Committer: Stefan Bodewig <[email protected]>
Committed: Fri Feb 13 10:40:52 2015 +0100

----------------------------------------------------------------------
 .../compilers/DefaultCompilerAdapterTest.java   | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/54f96c90/src/tests/junit/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapterTest.java
----------------------------------------------------------------------
diff --git 
a/src/tests/junit/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapterTest.java
 
b/src/tests/junit/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapterTest.java
index e3c2628..750098f 100644
--- 
a/src/tests/junit/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapterTest.java
+++ 
b/src/tests/junit/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapterTest.java
@@ -155,11 +155,9 @@ public class DefaultCompilerAdapterTest {
         testSource("1.7", "javac1.9",
                    "If you specify -target 1.7 you now must also specify"
                    + " -source 1.7", "1.7");
-        //TODO: This is the behaviour I would expect from analogy. But at the 
moment
-        // (jdk-1.9.0_b06) this is not 'implemented'.
-//        testSource("1.8", "javac1.9",
-//                "If you specify -target 1.8 you now must also specify"
-//                + " -source 1.8", "1.8");
+        testSource("1.8", "javac1.9",
+                   "If you specify -target 1.8 you now must also specify"
+                   + " -source 1.8", "1.8");
         testSource("5", "javac1.9",
                    "If you specify -target 5 you now must also specify"
                    + " -source 5", "5");
@@ -169,13 +167,11 @@ public class DefaultCompilerAdapterTest {
         testSource("7", "javac1.9",
                    "If you specify -target 7 you now must also specify"
                    + " -source 7", "7");
-        //TODO: This is the behaviour I would expect from analogy. But at the 
moment
-        // (jdk-1.9.0_b06) this is not 'implemented'.
-//        testSource("8", "javac1.9",
-//                "If you specify -target 8 you now must also specify"
-//                + " -source 8", "8");
-        testSource(null, "javac1.9", "", "1.8");
-        testSource(null, "javac1.9", "", "8");
+        testSource("8", "javac1.9",
+                   "If you specify -target 8 you now must also specify"
+                   + " -source 8", "8");
+        testSource(null, "javac1.9", "", "1.9");
+        testSource(null, "javac1.9", "", "9");
     }
 
     private void commonSourceDowngrades(String javaVersion) {

Reply via email to