v2.3.0+jdk21.preview
SecureNetWizard
released this
21 Nov 17:48
·
9 commits
to main
since this release
jNetPcap v2.3.0+jdk21.preview
This release backports jNetPcap to JDK 21, maintaining feature parity with the main JDK 22+ version while adapting to JDK 21's Foreign Function API.
Requirements
- JDK 21
--enable-preview
and--enable-native-access=org.jnetpcap
flags required
Changes
- Backported Foreign Function & Memory API from JDK 22+ to JDK 21
- Maintained all core functionality from v2.3.0
- No changes to public APIs
Migration
From JDK 22+:
- No code changes required
- Update JVM flags for JDK 21 compatibility
From earlier JDK 21 versions:
<dependency>
<groupId>com.slytechs.jnet.jnetpcap</groupId>
<artifactId>jnetpcap-wrapper</artifactId>
<version>2.3.0+jdk21.preview</version>
</dependency>
Known Issues
- None
Acknowledgments
Thanks to all contributors who helped test the JDK 21 backport.