[Bug libgcj/17081] New: Deserializing java.net.URI fails
greenrd at greenrd dot org
gcc-bugzilla@gcc.gnu.org
Wed Aug 18 12:58:00 GMT 2004
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
More information about the Java-prs
mailing list