This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/17081] New: Deserializing java.net.URI fails
- From: "greenrd at greenrd dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 18 Aug 2004 12:58:02 -0000
- Subject: [Bug libgcj/17081] New: Deserializing java.net.URI fails
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
URIs are deserialized incorrectly, and read too many or too few bytes from the
stream when deserializing, leaving the stream at the wrong position, which
causes the exception below. The attached test case tries all 4 permutations
(sun->sun, sun->gcj, etc.).
The output I get is (note initial blank line):
--- begin output ---
http://bogus.example.com/
http://bogus.example.com/
Sun -> Sun serialization OK
Exception in thread "main" java.io.IOException: Unknown marker on stream: 0
at java.io.ObjectInputStream.readObject() (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.6.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean)
(/usr/lib/libgcj.so.6.0.0)
at __libc_start_main (/lib/libc-2.3.2.so)
--- end output ---
--
Summary: Deserializing java.net.URI fails
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: greenrd at greenrd dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17081