Skip to content

Jvm.NET 2.0.0 — Pluggable JDK Implementations

Choose a tag to compare

@XSY-HYH XSY-HYH released this 14 Jul 19:53

Breaking Change

\JvmVersion\ enum has been replaced with a plain \int\ version number. Third-party packages can now register any JDK version (e.g. JDK 8, 11, 17) without waiting for the core package to extend an enum. Update call sites from \Version = JdkVersion.Jdk21\ to \Version = 21.

New Features

  • Pluggable JDK implementation API: implement \IJdkImplementation\ and register via \JdkImplementationRegistry.Register(...)\ before \JvmInitializer.Initialize. The core package auto-registers JDK 21-25 defaults via \ModuleInitializer.
  • Built-in JDK 22/23/24/25 support: each version has its own folder under \Abstractions/jdkXX/\ (JNI \