diff base/src/java/lang/Integer.d @ 114:46539f5c5993

Added implementation of ResourceBundle.
author kntroh
date Fri, 08 Apr 2011 20:12:20 +0900
parents 9f4c18c268b2
children 536e43f63c81
line wrap: on
line diff
--- a/base/src/java/lang/Integer.d	Wed Apr 06 21:57:23 2011 +0200
+++ b/base/src/java/lang/Integer.d	Fri Apr 08 20:12:20 2011 +0900
@@ -95,8 +95,12 @@
                 throw new NumberFormatException( e );
             }
         } else { // Phobos
-            implMissing( __FILE__, __LINE__ );
-            return 0;
+            try{
+            	return std.conv.parse!(int)( s, radix );
+            }
+            catch( std.conv.ConvException e ){
+                throw new NumberFormatException( e );
+            }
         }
     }