-
Enhancement
-
Resolution: Fixed
-
P3
-
9
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8163820 | 9 | Jonathan Gibbons | P3 | Closed | Fixed | b132 |
javac should support a new option to configure the javac compilation environment from the current runtime (execution) environment.
Exact details TBD, but informally, the option has the effect of determining the options specified when starting the enclosing VM, using ProcessHandle.current().info() and applying a subset of those options to javac, such as -addmods, -limitmods, -modulepath, -XaddReads, -XaddExports, -Xpatch, etc.
It is TBD what happens if any of those options conflict with any given explicitly to javac, either before or after the -XinheritRuntimeEnvironment option. Possibilities are: "last on wins", "merge", or "reject". Of these, "reject" is the simplest, although merge would be reasonable for at least some of the options.
Exact details TBD, but informally, the option has the effect of determining the options specified when starting the enclosing VM, using ProcessHandle.current().info() and applying a subset of those options to javac, such as -addmods, -limitmods, -modulepath, -XaddReads, -XaddExports, -Xpatch, etc.
It is TBD what happens if any of those options conflict with any given explicitly to javac, either before or after the -XinheritRuntimeEnvironment option. Possibilities are: "last on wins", "merge", or "reject". Of these, "reject" is the simplest, although merge would be reasonable for at least some of the options.
- backported by
-
JDK-8163820 javac should support new option -XinheritRuntimeEnvironment
-
- Closed
-
- relates to
-
JDK-8173312 Hide support for --inherit-runtime-environment
-
- Closed
-
-
JDK-8157986 Runtime support for javac to determine arguments to the runtime environment
-
- Resolved
-
-
JDK-8156962 javac should support options specified in _JAVAC_OPTIONS
-
- Closed
-