public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "greenrd at greenrd dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcj/17081] New: Deserializing java.net.URI fails Date: Wed, 18 Aug 2004 12:58:00 -0000 [thread overview] Message-ID: <20040818125758.17081.greenrd@greenrd.org> (raw) 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
next reply other threads:[~2004-08-18 12:58 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-08-18 12:58 greenrd at greenrd dot org [this message] 2004-08-18 12:59 ` [Bug libgcj/17081] " greenrd at greenrd dot org 2004-08-18 18:06 ` cvs-commit at gcc dot gnu dot org 2004-08-18 18:08 ` mckinlay at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040818125758.17081.greenrd@greenrd.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).