This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: fix for Double.java


I don't know how the bug in my Double.java change got past me.  I know
I rebuilt.  Anyway, here's a fix to the fix.

2000-06-27  Tom Tromey  <tromey@cygnus.com>

	* java/lang/Double.java (valueOf): Call parseDouble().

Tom

Index: java/lang/Double.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/lang/Double.java,v
retrieving revision 1.4
diff -u -r1.4 Double.java
--- Double.java	2000/06/24 18:11:01	1.4
+++ Double.java	2000/06/27 18:33:57
@@ -112,7 +112,7 @@
     if (s == null)
       throw new NullPointerException ();
 
-    return new Double (doubleValueOf (s));
+    return new Double (parseDouble (s));
   }
 
   public boolean isNaN ()

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]