mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8208269: Javadoc does not support module-info in a multi-release jar
Ensuring correct version is set when reading multi-release jars. Reviewed-by: jjg
This commit is contained in:
parent
63b1edb7b7
commit
19a7a3b69e
2 changed files with 126 additions and 0 deletions
|
@ -54,6 +54,7 @@ import javax.tools.StandardLocation;
|
|||
import com.sun.tools.javac.api.JavacTrees;
|
||||
import com.sun.tools.javac.file.BaseFileManager;
|
||||
import com.sun.tools.javac.file.JavacFileManager;
|
||||
import com.sun.tools.javac.jvm.Target;
|
||||
import com.sun.tools.javac.main.Arguments;
|
||||
import com.sun.tools.javac.main.CommandLine;
|
||||
import com.sun.tools.javac.main.OptionHelper;
|
||||
|
@ -549,6 +550,11 @@ public class Start extends ToolOption.Helper {
|
|||
((BaseFileManager) fileManager).handleOptions(fileManagerOpts);
|
||||
}
|
||||
|
||||
if (fileManager.isSupportedOption(MULTIRELEASE.primaryName) == 1) {
|
||||
Target target = Target.instance(context);
|
||||
List<String> list = List.of(target.multiReleaseValue());
|
||||
fileManager.handleOption(MULTIRELEASE.primaryName, list.iterator());
|
||||
}
|
||||
compOpts.notifyListeners();
|
||||
List<String> modules = (List<String>) jdtoolOpts.computeIfAbsent(ToolOption.MODULE,
|
||||
s -> Collections.EMPTY_LIST);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue