JDK-8293877 : Rewrite MineField test
  • Type: Sub-task
  • Component: tools
  • Sub-Component: javac
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-09-15
  • Updated: 2024-09-10
  • Resolved: 2022-10-03
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 17 JDK 20
17.0.14-oracleFixed 20 b18Fixed
Related Reports
Relates :  
Description
MineField and friends are the only remaining LangTools shell tests.
We should look at rewriting them in Java code.

open/test/langtools/tools/javac/Paths/MineField.sh:# @test
open/test/langtools/tools/javac/Paths/Class-Path.sh:# @test
open/test/langtools/tools/javac/Paths/Help.sh:# @test
open/test/langtools/tools/javac/Paths/Diagnostics.sh:# @test
open/test/langtools/tools/javac/Paths/wcMineField.sh:# @test
open/test/langtools/tools/javac/Paths/Class-Path2.sh:# @test 

Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/2852 Date: 2024-09-06 12:38:22 +0000
06-09-2024

Fix request [17u] I backport this for parity with 17.0.14-oracle. No risk, only a test change. Clean backport except for deleting one file. Tests pass.
06-09-2024

Changeset: e137f9f2 Author: Jonathan Gibbons <jjg@openjdk.org> Date: 2022-10-03 17:08:37 +0000 URL: https://git.openjdk.org/jdk/commit/e137f9f2f0e4244307900cd0eadceb9b773e9858
03-10-2022

Note that various commands (javac, jar, jimage) can probably be handled via the java.util.spi.ToolProvider API, leaving just `java` to be invoked in a separate process. Update: some javac invocations require one or more of the following, any of which requires that javac should be executed in a separate process: - in a different directory - with different env variables - using the "class path wildcard" feature (which is implemented down in the launcher code)
21-09-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/10366 Date: 2022-09-21 00:57:22 +0000
21-09-2022