Fix Version/s: 17
Compatibility Risk Description:debugging options will be enabled for the class being executed when the use of a debugger is detected
When compiling code with the source launcher, enable debugging info when debug options are detected.
Currently, the internal compilation of code being run by the source launcher does not include full debug info, because class files are not generated that might subsequentlly be run under a debugger. But a notable special case is when the source launcher itself is being run with a debugger.
Detect the use of a debugger and automatically set the
-g option for the internal compilation.
This is just a behavioral change. There is no change required for the user to enable the new behavior.
-g option for the internal compilation will be set when the
java launcher for JEP-330 is launched with
-Xrunjdwp: command line options.