RFR: 8368754: runtime/cds/appcds/SignedJar.java log regex is to strict
Axel Boldt-Christmas
aboldtch at openjdk.org
Fri Sep 26 09:13:27 UTC 2025
Any logging which gets enabled (via `-verbose:class` which the test uses, or externally from JTREG) and logs before the line this test is checking for with a tag set which is longer than `class,load` makes the test fail.
Example:
Test expects:
* `"[class,load] Hello source: [...]"`
What it gets when logging with `class,unload` prior to this specific log line:
* `"[class,load ] Hello source: [...]"`
I suggest we simply allow for any whitespace after the log tags and before the `.`. Unclear why we use `.` and not `]`. But think it works just as well.
-------------
Commit messages:
- 8368754: runtime/cds/appcds/SignedJar.java log regex is to strict
Changes: https://git.openjdk.org/jdk/pull/27517/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27517&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8368754
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/27517.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27517/head:pull/27517
PR: https://git.openjdk.org/jdk/pull/27517
More information about the hotspot-runtime-dev
mailing list