Add patches to suppress native access warnings
This MR resolves 1130186
Java 25 warns about Unsafe usages and unrestricted native access.
Changes:
- Add options to enable unrestricted native access and allow Unsafe usage.
Testing:
- jruby runs without warnings on stderr
$jruby --version
jruby 9.4.8.0 (3.1.4) 2026-03-10 9.4.8.0+ds OpenJDK 64-Bit Server VM 25.0.3-ea+5-[Ubuntu-1] on 25.0.3-ea+5-[Ubuntu-1] +jit [x86_64-linux]
- autopkgtests pass:
autopkgtest [14:40:53]: @@@@@@@@@@@@@@@@@@@@ summary
smoke PASS (superficial)
jgem PASS
jirb PASS
jruby PASS
spec-compiler PASS
spec-ffi PASS
spec-ji PASS
spec-jruby PASS
spec-ruby PASS
mri-core PASS
mri-extra PASS
mri-stdlib PASS