Skip to content

Resolve Java 21 FTBFS

Vladimir Petko requested to merge vpa1977/jamm:master into master

This MR resolves: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053026

Changes:

  • disable test failing in Java 21.

I've stepped through it in the debugger - the test fails when trying to assert the size of soft references. The assertion meterMeasuring.measureDeep(new ReferenceQueue<Object>()) is not correct when measuring size of the SoftReference since the Reference uses ReferenceQueue(int) package local constructor that does not initalise notEmpty and lock members.

The alternative solution is to provide two versions of the test: existing one and Java 21-compatible.

Testing:

  • build in sid chroot with default Java 21
  • build in sid chroot
Edited by Vladimir Petko

Merge request reports

Loading