[libjxp-java] 01/02: Fixed a test failure with Java 8

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon May 12 15:04:16 UTC 2014


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository libjxp-java.

commit 551ea8868f370fd95aa895a0dd064e2b0c3273fc
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Mon May 12 16:48:07 2014 +0200

    Fixed a test failure with Java 8
---
 debian/changelog              | 1 +
 debian/patches/fix-test.patch | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 31ab6f9..54452fd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 libjxp-java (1.6.1-5) UNRELEASED; urgency=medium
 
   * Team upload.
+  * Fixed a test failure with Java 8
   * Fixed an IOException (Too many open files) during the build
     (debian-libs.patch caused Ant to load all the jars in /usr/share/java)
   * Switch to debhelper level 9
diff --git a/debian/patches/fix-test.patch b/debian/patches/fix-test.patch
index a71d99f..4f15c86 100644
--- a/debian/patches/fix-test.patch
+++ b/debian/patches/fix-test.patch
@@ -11,7 +11,7 @@ Last-Update: 2012-04-18
  
  //test function from math
 -assert(abs(-1.3f)==1.3);
-+assert(abs(-1.3f).compareTo(Double.valueOf(1.3d)) == 0);
++assert(abs(-1.3f) - 1.3 < Float.MIN_VALUE);
  
  //test methods from test class
  //staticPrivateMethod();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libjxp-java.git



More information about the pkg-java-commits mailing list