Integrated: 8368754: runtime/cds/appcds/SignedJar.java log regex is too strict

Axel Boldt-Christmas aboldtch at openjdk.org
Mon Sep 29 05:22:23 UTC 2025


On Fri, 26 Sep 2025 09:06:40 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: e19ec6f7
Author:    Axel Boldt-Christmas <aboldtch at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e19ec6f785e889d254b15c5ef2e801152c59c948
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8368754: runtime/cds/appcds/SignedJar.java log regex is too strict

Reviewed-by: iklam, dholmes

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

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


More information about the hotspot-runtime-dev mailing list