[Bug 2142179] Re: osmpbf: fails autopkgtest with Java 25

Launchpad Bug Tracker 2142179 at bugs.launchpad.net
Wed Feb 25 22:54:40 UTC 2026


This bug was fixed in the package osmpbf - 1.6.1-1ubuntu1

---------------
osmpbf (1.6.1-1ubuntu1) resolute; urgency=medium

  [ Bas Couwenberg ]
  * Use --sun-misc-unsafe-memory-access=allow for Java 24+.
    (Closes: #1128378) (LP: #2142179)

 -- Vladimir Petko <vladimir.petko at canonical.com>  Fri, 20 Feb 2026
10:21:37 +1300

** Changed in: osmpbf (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to java-common in Ubuntu.
https://bugs.launchpad.net/bugs/2142179

Title:
  osmpbf: fails autopkgtest with Java 25

Status in java-common package in Ubuntu:
  New
Status in osmpbf package in Ubuntu:
  Fix Released
Status in osmpbf package in Debian:
  Fix Committed

Bug description:
  Protobuf implementation uses sun.misc.Unsafe that produces a warning
  in Java 25:

  https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-
  resolute/resolute/amd64/o/osmpbf/20260218_041012_49eed@/log.gz

  
  289s Copying java sources: cp -rv /tmp/autopkgtest.xj9sM5/build.xDC/src/debian/tests/ReadPBF.java .
  289s '/tmp/autopkgtest.xj9sM5/build.xDC/src/debian/tests/ReadPBF.java' -> './ReadPBF.java'
  289s 
  289s Compiling java sources: javac -cp .:/usr/share/java/osmpbf.jar:/usr/share/java/protobuf.jar ReadPBF.java
  289s 
  289s Executing: java -cp .:/usr/share/java/osmpbf.jar:/usr/share/java/protobuf.jar ReadPBF andorra-latest.osm.pbf
  289s Reading: andorra-latest.osm.pbf
  289s WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
  289s WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by com.google.protobuf.UnsafeUtil$MemoryAccessor (file:/usr/share/java/protobuf-3.21.12.jar)
  289s WARNING: Please consider reporting this to the maintainers of class com.google.protobuf.UnsafeUtil$MemoryAccessor
  289s WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release
  289s Parsing HeaderBlock
  289s  BBOX: 42.427600000000005,1.412368,42.65717,1.787481
  ....
  553s java                 FAIL stderr: WARNING: A terminally deprecated method in sun.misc.Unsafe has been called

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/java-common/+bug/2142179/+subscriptions




More information about the foundations-bugs mailing list