harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r440873 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLConnection.java
Date Wed, 06 Sep 2006 21:13:46 GMT
Author: ndbeyer
Date: Wed Sep  6 14:13:45 2006
New Revision: 440873

URL: http://svn.apache.org/viewvc?view=rev&rev=440873
Log:
Throw IllegalStateException instead of IllegalAccessError, as per javadoc.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLConnection.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLConnection.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLConnection.java?view=diff&rev=440873&r1=440872&r2=440873
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLConnection.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLConnection.java
Wed Sep  6 14:13:45 2006
@@ -909,10 +909,11 @@
 	 * 
 	 * @param newValue
 	 *            number of milliseconds since epoch
+     * @throws IllegalStateException if already connected.
 	 */
 	public void setIfModifiedSince(long newValue) {
 		if (connected) {
-			throw new IllegalAccessError(Msg.getString("K0037"));
+			throw new IllegalStateException(Msg.getString("K0037"));
 		}
 		this.ifModifiedSince = newValue;
 	}



Mime
View raw message