Commit 703d680
Java: make JDK 11 version normalisation in gradle buildless test robust
`java.version` may carry a fourth `$PATCH` component (JEP 322), as in
Temurin `jdk-11.0.32.1+1`. The previous pattern matched exactly three
components, so the trailing `.1` survived and the test reported `11.1`.
Accept any number of version components, and anchor on the surrounding
quotes so the substitution only rewrites a whole JSON string rather than
version-like text elsewhere in the diagnostics.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent cf26b00 commit 703d680
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
0 commit comments