This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
HTT URLConnection.getInputStream seems broken in cvs
- From: Fabio Roger <fabioroger at gmail dot com>
- To: gcj <java at gcc dot gnu dot org>
- Date: Fri, 04 Mar 2005 17:10:58 +0800
- Subject: HTT URLConnection.getInputStream seems broken in cvs
Hi,
I try a URL.getInputStream() for a normal http connection and it throws
this exception:
...
Caused by: java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(java.lang.Object, int,
java.lang.Object, int, int) (/usr/lib/libgcj.so.6.0.0)
at java.io.BufferedInputStream.refill() (/usr/lib/libgcj.so.6.0.0)
at java.io.BufferedInputStream.read(byte[], int, int)
(/usr/lib/libgcj.so.6.0.0)
at gnu.java.net.LineInputStream.readLine() (/usr/lib/libgcj.so.6.0.0)
at gnu.java.net.protocol.http.Headers.parse(java.io.InputStream)
(/usr/lib/libgcj.so.6.0.0)
at gnu.java.net.protocol.http.Request.readResponse
(gnu.java.net.LineInputStream) (/usr/lib/libgcj.so.6.0.0)
at gnu.java.net.protocol.http.Request.dispatch()
(/usr/lib/libgcj.so.6.0.0)
at gnu.java.net.protocol.http.HTTPURLConnection.connect()
(/usr/lib/libgcj.so.6.0.0)
at gnu.java.net.protocol.http.HTTPURLConnection.getInputStream()
(/usr/lib/libgcj.so.6.0.0)
...
gcc version 4.1.0 20050303 (experimental) (I just checkout and compile)
and this works well when compiled/used with gcc 3.4.2 in the other box.
am I doing something wrong or the thing is broken?
thanks,
Fabio Roger