harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r422312 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src: main/java/java/util/UnknownFormatConversionException.java test/java/tests/api/java/util/UnknownFormatConversionExceptionTest.java
Date Sat, 15 Jul 2006 22:46:39 GMT
Author: ndbeyer
Date: Sat Jul 15 15:46:38 2006
New Revision: 422312

URL: http://svn.apache.org/viewvc?rev=422312&view=rev
Log:
Apply patch for HARMONY-401: RI's java.util.UnknownFormatConversionException has different
behavior with Java spec

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatConversionException.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatConversionExceptionTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatConversionException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatConversionException.java?rev=422312&r1=422311&r2=422312&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatConversionException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatConversionException.java
Sat Jul 15 15:46:38 2006
@@ -33,9 +33,6 @@
 	 *            The unknown format conversion
 	 */
 	public UnknownFormatConversionException(String s) {
-		if (null == s) {
-			throw new NullPointerException();
-		}
 		this.s = s;
 	}
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatConversionExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatConversionExceptionTest.java?rev=422312&r1=422311&r2=422312&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatConversionExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatConversionExceptionTest.java
Sat Jul 15 15:46:38 2006
@@ -35,9 +35,8 @@
 			String s = null;
 			UnknownFormatConversionException UnknownFormatConversionException = new UnknownFormatConversionException(
 					s);
-			fail("should throw NullPointerExcepiton");
 		} catch (NullPointerException e) {
-			// expected
+			fail("should not throw NullPointerExcepiton");
 		}
 
 	}



Mime
View raw message