> Problem:
> 
> When `-bootclasspath` is specified, javap still searches `SYSTEM_MODULES` 
> before `PLATFORM_CLASS_PATH`. Therefore, system classes such as 
> `java.lang.Object` are loaded from the current JDK instead of the specified 
> boot class path.
> 
> Fix:
> 
> When a boot class path is explicitly specified, skip the `SYSTEM_MODULES` 
> lookup. The existing behavior remains unchanged otherwise.
> 
> Testing:
> 
> - Added regression coverage for all three boot class path option forms: 
> `-bootclasspath`, `--boot-class-path`, and `--boot-class-path=<path>`.
> - `make test TEST=test/langtools/tools/javap`: 87 passed, 1 excluded, 0 
> failed.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Yunbo Zhang has updated the pull request incrementally with one additional 
commit since the last revision:

  8354563: Remove personal copyright line from javap test

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/32554/files
  - new: https://git.openjdk.org/jdk/pull/32554/files/d55e7cbf..6c934f37

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=32554&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=32554&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/32554.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32554/head:pull/32554

PR: https://git.openjdk.org/jdk/pull/32554

Reply via email to