Tony Mancill pushed to branch master at Debian Java Maintainers / jamm


Commits:
45b2841e by Vladimir Petko at 2023-11-22T13:44:00+13:00
disable testIgnoreNonStrongReferences until upstream supports Java 21

- - - - -
f9da3891 by Vladimir Petko at 2023-11-22T13:46:55+13:00
changelog

- - - - -
bd4150b3 by Tony Mancill at 2023-11-22T05:07:26+00:00
Merge branch 'master' into 'master'

Resolve Java 21 FTBFS

See merge request java-team/jamm!2
- - - - -


3 changed files:

- debian/changelog
- + debian/patches/01-disable-reference-test.patch
- + debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+jamm (0.4.0-2) UNRELEASED; urgency=medium
+
+  * d/01-disable-reference-test.patch: disable
+    testIgnoreNonStrongReferences, that fails due to the optimisation of
+    ReferenceQueue<> in Java 21 (Closes: #1053026).
+
+ -- Vladimir Petko <vladimir.pe...@canonical.com>  Wed, 22 Nov 2023 13:45:48 
+1300
+
 jamm (0.4.0-1) unstable; urgency=medium
 
   * New upstream version 0.4.0


=====================================
debian/patches/01-disable-reference-test.patch
=====================================
@@ -0,0 +1,17 @@
+Description: Disable testIgnoreNonStrongReferences test upstream supports Java 
21
+ Upstream does not support Java 21. This patch disables the test that fails
+ due to optimisations of the memory usage in ReferenceQueue<> in Java 21.
+Author: Vladimir Petko <vladimir.pe...@canonical.com>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053026
+Forwarded: not-needed
+Last-Update: 2023-11-22
+--- a/test/org/github/jamm/MemoryMeterTest.java
++++ b/test/org/github/jamm/MemoryMeterTest.java
+@@ -135,7 +135,6 @@
+         assertEquals(meter.measure(withString) + meter.measure(1), 
meter.measureDeep(withString));
+     }
+ 
+-    @Test
+     public void testIgnoreNonStrongReferences() throws InterruptedException {
+         // The Reference fields 'next' and 'discovered' are used by 
'ReferenceQueue' instances and are not part of what
+         // we want to measure. The 'queue' field is either a singleton 
'ReferenceQueue.NULL' or a provided queue that user hold a reference to.


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+01-disable-reference-test.patch



View it on GitLab: 
https://salsa.debian.org/java-team/jamm/-/compare/3b3fe18656d1f3fa27c2b13f78f7b090e4d473bf...bd4150b3731c1db7bfb2d357fa6a430d4b1ce4f9

-- 
View it on GitLab: 
https://salsa.debian.org/java-team/jamm/-/compare/3b3fe18656d1f3fa27c2b13f78f7b090e4d473bf...bd4150b3731c1db7bfb2d357fa6a430d4b1ce4f9
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
pkg-java-commits mailing list
pkg-java-comm...@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to