Skip to content

test: check JDK 28, value classes and FFM-only at run time - #98

Merged
AdaWorldAPI merged 1 commit into
mainfrom
ccr-c83f9f2f-t0hyyt
Nov 12, 2026
Merged

AdaWorldAPI merged 1 commit into
mainfrom
ccr-c83f9f2f-t0hyyt

Conversation

@AdaWorldAPI

Copy link
Copy Markdown
Owner

Why

The repository requires JDK 28 or later, Valhalla value classes and Panama (FFM). CI already installs JDK 28 EA through actions/setup-java and compiles with --release 28 --enable-preview, so an older JDK cannot build it. Two retreats still compile, and nothing failed on them:

  • a vocabulary type turned back from value record into a plain record;
  • a JNI entry point (System.loadLibrary, a native method) added beside the FFM membrane.

What

ToolchainMandateTest, a new suite in AllTests (it needs no native library, so it also runs when the artifact is absent):

  • the running JVM is feature version 28 or later;
  • LaneId, MaskId, Ordinal, FacetId, RowRange, WideFieldMask each answer Class.isValue() == true, and an identity class answers false;
  • the FFM native linker is available;
  • no JNI entry point in java/src/main (38 files scanned), with three checks that the pattern matches a native method and a library load and ignores prose.

DoctrineFenceTest.repoRoot and sourcesUnder become package-private so the new suite reuses them. LATEST_STATE.md records the suite and marks D-LGJ-MASK-PARENT-1 as merged in #96.

Verified

  • ToolchainMandateTest: 14 checks pass on Temurin 28 EA.
  • AllTests: 631 checks, 0 failures (617 before, plus these 14), abi 0.14.
  • Disable run: LaneId as a plain record gives FAIL LaneId is a value class, 1 failed and 13 passed. Restored.

Not run

  • Consumer mains and TinkerPop locally; no production code changed. CI's java-suites job runs them.

Generated by Claude Code

The compiler flags (--release 28 --enable-preview) refuse an older JDK, but a
vocabulary type turned back into an identity record, or a JNI entry point added
beside the FFM membrane, still compiles. ToolchainMandateTest fails then.

Claude-Session: https://claude.ai/code/session_01XAqKMP36eRfzsppfaEWMVz
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0745b00c-f860-4f76-9d77-8a867d1badcc
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@AdaWorldAPI
AdaWorldAPI marked this pull request as ready for review November 12, 2026 23:05
@AdaWorldAPI
AdaWorldAPI merged commit 6d42b30 into main Nov 12, 2026
4 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T23:06:27.695382Z 639a16f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants