Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Fixed: javac.** not included in packaged JAR; 'null' returned from So…
Browse files Browse the repository at this point in the history
…urceVersion.latest() and SourceVersion.getLatestSupported()
  • Loading branch information
itsaky committed Aug 16, 2022
1 parent 502a0d6 commit 9e93319
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions make/langtools/netbeans/nb-javac/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
<include name="com/itsaky/**/*"/>
<include name="com/sun/**/*" />
<include name="java/lang/**/*" />
<include name="javac/internal/**/*"/>
<include name="javax/annotation/**/*" />
<include name="javax/lang/**/*" />
<include name="javax/tools/*" />
Expand All @@ -107,6 +108,7 @@
<include name="jdk/internal/jrtfs/**/*" />
<include name="jdk/internal/jmod/**/*" />
<include name="jdk/internal/jimage/**/*" />
<include name="sun/tools/**/*"/>
</fileset>
</jar>
<delete file="${dist.jar}" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ public static SourceVersion latest() {
* need to be updated accordingly.
*/
private static SourceVersion getLatestSupported() {
return latest();
// AndroidIDE changed: Allow overriding latest supported source version.
return JavacConfigProvider.getLatestSupportedSourceVersion();
}


Expand All @@ -288,7 +289,8 @@ private static SourceVersion getLatestSupported() {
* which may be earlier than the {@code latest} release.
*/
public static SourceVersion latestSupported() {
return latestSupported;
// AndroidIDE changed: Allow overriding latest supported source version.
return JavacConfigProvider.getLatestSupportedSourceVersion();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2233,7 +2233,7 @@ VarSymbol readField() {

/** Read a method.
*/
MethodSymbol readMethod() {
protected MethodSymbol readMethod() {
long flags = adjustMethodFlags(nextChar());
Name name = poolReader.getName(nextChar());
Type type = poolReader.getType(nextChar());
Expand Down

0 comments on commit 9e93319

Please sign in to comment.