Browse Source

#53347: <javac> by default fails when run on JDK 8.

Follow-up to revision 1236803.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1345316 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 13 years ago
parent
commit
0461296c63
2 changed files with 5 additions and 1 deletions
  1. +3
    -0
      WHATSNEW
  2. +2
    -1
      src/main/org/apache/tools/ant/taskdefs/compilers/CompilerAdapterFactory.java

+ 3
- 0
WHATSNEW View File

@@ -28,6 +28,9 @@ Fixed bugs:
system properties from the command line (or from a property file). system properties from the command line (or from a property file).
Bugzilla Report 51792 Bugzilla Report 51792
* <javac> by default fails when run on JDK 8.
Bugzilla Report 53347.

Other changes: Other changes:
-------------- --------------




+ 2
- 1
src/main/org/apache/tools/ant/taskdefs/compilers/CompilerAdapterFactory.java View File

@@ -120,7 +120,8 @@ public final class CompilerAdapterFactory {
|| compilerType.equalsIgnoreCase("javac1.4") || compilerType.equalsIgnoreCase("javac1.4")
|| compilerType.equalsIgnoreCase("javac1.5") || compilerType.equalsIgnoreCase("javac1.5")
|| compilerType.equalsIgnoreCase("javac1.6") || compilerType.equalsIgnoreCase("javac1.6")
|| compilerType.equalsIgnoreCase("javac1.7")) {
|| compilerType.equalsIgnoreCase("javac1.7")
|| compilerType.equalsIgnoreCase("javac1.8")) {
// does the modern compiler exist? // does the modern compiler exist?
if (doesModernCompilerExist()) { if (doesModernCompilerExist()) {
return new Javac13(); return new Javac13();


Loading…
Cancel
Save