--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/platform/JDKPlatformProvider.java Fri May 19 04:59:51 2017 +0000
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/platform/JDKPlatformProvider.java Mon May 22 15:50:09 2017 +0200
@@ -66,7 +66,7 @@
@Override
public PlatformDescription getPlatform(String platformName, String options) {
- return new PlatformDescriptionImpl(platformName);
+ return new PlatformDescriptionImpl(platformName.equals("10") ? "9" : platformName);
}
private static final String[] symbolFileLocation = { "lib", "ct.sym" };
@@ -93,6 +93,10 @@
} catch (IOException | ProviderNotFoundException ex) {
}
}
+
+ if (SUPPORTED_JAVA_PLATFORM_VERSIONS.contains("9")) {
+ SUPPORTED_JAVA_PLATFORM_VERSIONS.add("10");
+ }
}
private static String targetNumericVersion(Target target) {