Skip to content

Commit

Permalink
Add support to override JavaCore.latestSupportedJavaVersion for javac
Browse files Browse the repository at this point in the history
  • Loading branch information
gayanper committed Jul 18, 2024
1 parent d51ed7c commit 8926c80
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6501,7 +6501,8 @@ public static void setOptions(Hashtable<String, String> newOptions) {
* @return the latest Java version support by Java Model
*/
public static String latestSupportedJavaVersion() {
return allVersions.get(allVersions.size() - 1);
return System.getProperty(JavaCore.class.getSimpleName() + ".latestSupportedJavaVersion" //$NON-NLS-1$
, allVersions.get(allVersions.size() - 1));
}

/**
Expand Down

0 comments on commit 8926c80

Please sign in to comment.