JDK-8205442 : Avoid hard-coding --source value in SourceLauncherTest.java
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-06-20
  • Updated: 2018-07-06
  • Resolved: 2018-06-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 12
11 b20Fixed 12Fixed
Related Reports
Relates :  
Relates :  
Description
The test

  test/langtools/tools/javac/launcher/SourceLauncherTest.java

of the Launch Single-File Source-Code Programs feature (JEP 330) often hard-codes the argument to the --source launcher option.

As the current JDK release number advances, it would be helpful to have more tests under the current release value too.
Comments
In a number of cases, the value is irrelevant because the test case is a negative test case; nevertheless, I agree it is less confusing to use the current version and not a statically fixed version.
21-06-2018