changeset 237:3ff54046cde2

* patches/icedtea-float-double-trailing-zeros.patch: New file. * Makefile.am (ICEDTEA_PATCHES): Add above patch. * Makefile.in: Regenerate.
author Keith Seitz <keiths@redhat.com>
date Wed, 03 Oct 2007 16:48:03 -0700
parents ec5c1b178b00
children d0100142281b
files ChangeLog Makefile.am Makefile.in patches/icedtea-float-double-trailing-zeros.patch
diffstat 4 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Oct 03 15:44:35 2007 -0700
+++ b/ChangeLog	Wed Oct 03 16:48:03 2007 -0700
@@ -1,3 +1,10 @@
+2007-10-03  Keith Seitz  <keiths@redhat.com>
+
+	* patches/icedtea-float-double-trailing-zeros.patch:
+	New file.
+	* Makefile.am (ICEDTEA_PATCHES): Add above patch.
+	* Makefile.in: Regenerate.
+
 2007-10-03  Keith Seitz  <keiths@redhat.com>
 
 	* patches/icedtea-bytebuffer-compact.patch: New file.
--- a/Makefile.am	Wed Oct 03 15:44:35 2007 -0700
+++ b/Makefile.am	Wed Oct 03 16:48:03 2007 -0700
@@ -138,6 +138,7 @@
 	patches/icedtea-ant.patch \
 	patches/icedtea-gcc-suffix.patch \
 	patches/icedtea-bytebuffer-compact.patch \
+	patches/icedtea-float-double-trailing-zeros.patch \
 	$(FAST_BUILD_PATCH) \
 	$(DISTRIBUTION_PATCHES)
 
--- a/Makefile.in	Wed Oct 03 15:44:35 2007 -0700
+++ b/Makefile.in	Wed Oct 03 16:48:03 2007 -0700
@@ -254,6 +254,7 @@
 	patches/icedtea-ant.patch \
 	patches/icedtea-gcc-suffix.patch \
 	patches/icedtea-bytebuffer-compact.patch \
+	patches/icedtea-float-double-trailing-zeros.patch \
 	$(FAST_BUILD_PATCH) \
 	$(DISTRIBUTION_PATCHES)
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/icedtea-float-double-trailing-zeros.patch	Wed Oct 03 16:48:03 2007 -0700
@@ -0,0 +1,30 @@
+diff -r 48f64c7da34f j2se/src/share/classes/sun/misc/FloatingDecimal.java
+--- openjdk/j2se/src/share/classes/sun/misc/FloatingDecimal.java	Thu Sep 27 12:56:46 2007 -0700
++++ openjdk/j2se/src/share/classes/sun/misc/FloatingDecimal.java	Wed Oct 03 15:53:31 2007 -0700
+@@ -730,7 +730,7 @@ public class FloatingDecimal{
+ 		 * Thus we will need more than one digit if we're using
+ 		 * E-form
+ 		 */
+-		if ( decExp <= -3 || decExp >= 8 ){
++		if ( decExp < -3 || decExp >= 8 ){
+ 		    high = low = false;
+ 		}
+ 		while( ! low && ! high ){
+@@ -783,7 +783,7 @@ public class FloatingDecimal{
+ 		 * Thus we will need more than one digit if we're using
+ 		 * E-form
+ 		 */
+-		if ( decExp <= -3 || decExp >= 8 ){
++		if ( decExp < -3 || decExp >= 8 ){
+ 		    high = low = false;
+ 		}
+ 		while( ! low && ! high ){
+@@ -847,7 +847,7 @@ public class FloatingDecimal{
+ 	     * Thus we will need more than one digit if we're using
+ 	     * E-form
+ 	     */
+-	    if ( decExp <= -3 || decExp >= 8 ){
++	    if ( decExp < -3 || decExp >= 8 ){
+ 		high = low = false;
+ 	    }
+ 	    while( ! low && ! high ){