This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Patch: URLConnection fix (and more comment fixes)
- To: java-patches at sources dot redhat dot com
- Subject: Patch: URLConnection fix (and more comment fixes)
- From: Anthony Green <green at cygnus dot com>
- Date: Sun, 7 Jan 2001 12:00:30 -0800 (PST)
- CC: mjr at statesmean dot com
- Reply-to: green at cygnus dot com
This should fix Mark Roberts' bug. It also corrects some javadoc
annotations in StringBuffer. I am committing this change.
2001-01-07 Anthony Green <green@redhat.com>
* java/net/URLConnection.java (setDoOutput): URLConnections may
be used for both input and output, so don't clear doInput.
* java/lang/StringBuffer.java: Fix comments.
Index: java/lang/StringBuffer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/StringBuffer.java,v
retrieving revision 1.9
diff -c -u -r1.9 StringBuffer.java
--- StringBuffer.java 2000/12/08 13:08:36 1.9
+++ StringBuffer.java 2001/01/07 19:55:08
@@ -299,7 +299,7 @@
* @exception NullPointerException if dst is null.
* @exception IndexOutOfBoundsException if any source or target
* indices are out of range.
- * @see java.lang.System#arrayCopy(java.lang.Object,int,java.lang.Object,int,int)
+ * @see java.lang.System#arraycopy(java.lang.Object,int,java.lang.Object,int,int)
*/
public synchronized void getChars (int srcOffset, int srcEnd,
char[] dst, int dstOffset)
@@ -494,7 +494,7 @@
* <em>capacity</em> of the <code>StringBuffer</code>.
* @return the length of this <code>StringBuffer</code>.
* @see #capacity()
- * @see #setLength()
+ * @see #setLength(int)
*/
public int length ()
{
Index: java/net/URLConnection.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/URLConnection.java,v
retrieving revision 1.6
diff -c -u -r1.6 URLConnection.java
--- URLConnection.java 2000/03/07 19:55:27 1.6
+++ URLConnection.java 2001/01/07 19:55:10
@@ -204,8 +204,6 @@
throw new IllegalAccessError("Already connected");
doOutput = dooutput;
- if (doOutput)
- doInput = false;
}
public boolean getDoOutput()