harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r393478 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/File.java
Date Wed, 12 Apr 2006 14:52:10 GMT
Author: mloenko
Date: Wed Apr 12 07:52:07 2006
New Revision: 393478

URL: http://svn.apache.org/viewcvs?rev=393478&view=rev
Log:
fix for File.createNewFile() as discussed in the mail thread
'unstable NPE in the archive module'

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/File.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/File.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/File.java?rev=393478&r1=393477&r2=393478&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/File.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/File.java
Wed Apr 12 07:52:07 2006
@@ -1030,9 +1030,8 @@
 		case 0:
 			return true;
 		case 1:
-			return false;
 		case 3:
-			throw new IOException(org.apache.harmony.luni.util.Msg.getString("K01c1")); //$NON-NLS-1$
+			return false;
 		default:
 			throw new IOException(org.apache.harmony.luni.util.Msg.getString("K01c2", path)); //$NON-NLS-1$
 		}



Mime
View raw message