Skip to content

Keep the shared Java facade compatible with Java 8 - #40

Open
NV-sschneider wants to merge 1 commit into
NVIDIAGameWorks:mainfrom
NV-sschneider:codex/java8-shared-facade
Open

NV-sschneider wants to merge 1 commit into
NVIDIAGameWorks:mainfrom
NV-sschneider:codex/java8-shared-facade

Conversation

@NV-sschneider

Copy link
Copy Markdown

The shared facade cannot compile on Java 8 because CommandLineRedaction uses records and StringBuilder.repeat. Replace the two record holders with immutable classes and append backslashes in a loop. This is a small prerequisite for reusing the facade from Forge 1.12.2.

Add a regression test that compiles all shared facade sources against the Java 8 platform, with only JOML on the classpath. It runs in the existing test suite. The public facade API and native runtime contract are unchanged.

Validation:

  • gradlew.bat build test: 800 tests passed, no skips.
  • The new test fails against the original implementation; the installed JDK 8 also compiled all 45 facade sources successfully after the fix.
  • tools\rtx.bat check --tests: formatting, lint, types, public-boundary checks, 1,135 tests and 178 subtests passed.
  • tools\rtx.bat launch --resource-pack none --quiet: authenticated Windows x64 Fabric launch; inspected the title screen, confirmed Remix initialization, then quit normally with clean runtime shutdown.

Replace the command-line redactor records with immutable holders and append backslashes without StringBuilder.repeat. Compile every shared facade source against the Java 8 platform in a regression test with only JOML on the classpath.

Signed-off-by: Seth Schneider <74025139+NV-sschneider@users.noreply.github.com>
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.

1 participant