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 12, 2024
1 parent d2ad1b7 commit c0e5032
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 c0e5032

Please sign in to comment.