Skip to content

Commit 993e87f

Browse files
Issue #139 Fix CI workflow for Java 24+ JTD codegen module
- Updated CI workflow to use Java 24 (required for JTD codegen module) - Changed distribution from temurin to oracle for Java 24 availability - Updated expected test count from 611 to 850 (includes new codegen tests) - Updated expected skipped count to 2 (recursive schemas in codegen) The json-java21-jtd-codegen module requires Java 24+ for the ClassFile API (JEP 484). Previous workflow used Java 21 which caused compilation failure: 'release version 24 not supported'. Co-authored-by: Simon Massey <simbo1905@users.noreply.github.com>
1 parent 407129c commit 993e87f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515

16-
- name: Set up JDK 21
16+
- name: Set up JDK 24
1717
uses: actions/setup-java@v4
1818
with:
19-
distribution: temurin
20-
java-version: '21'
19+
distribution: oracle
20+
java-version: '24'
2121
cache: 'maven'
2222

2323
- name: Build and verify
@@ -39,8 +39,8 @@ jobs:
3939
for k in totals: totals[k]+=int(r.get(k,'0'))
4040
except Exception:
4141
pass
42-
exp_tests=611
43-
exp_skipped=0
42+
exp_tests=850
43+
exp_skipped=2
4444
if totals['tests']!=exp_tests or totals['skipped']!=exp_skipped:
4545
print(f"Unexpected test totals: {totals} != expected tests={exp_tests}, skipped={exp_skipped}")
4646
sys.exit(1)

0 commit comments

Comments
 (0)