public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/17081] New: Deserializing java.net.URI fails
@ 2004-08-18 12:58 greenrd at greenrd dot org
2004-08-18 12:59 ` [Bug libgcj/17081] " greenrd at greenrd dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: greenrd at greenrd dot org @ 2004-08-18 12:58 UTC (permalink / raw)
To: java-prs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgcj/17081] Deserializing java.net.URI fails
2004-08-18 12:58 [Bug libgcj/17081] New: Deserializing java.net.URI fails greenrd at greenrd dot org
@ 2004-08-18 12:59 ` 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
2 siblings, 0 replies; 4+ messages in thread
From: greenrd at greenrd dot org @ 2004-08-18 12:59 UTC (permalink / raw)
To: java-prs
------- Additional Comments From greenrd at greenrd dot org 2004-08-18 12:59 -------
Created an attachment (id=6953)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6953&action=view)
testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17081
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgcj/17081] Deserializing java.net.URI fails
2004-08-18 12:58 [Bug libgcj/17081] New: Deserializing java.net.URI fails greenrd at greenrd dot org
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
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-18 18:06 UTC (permalink / raw)
To: java-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-08-18 18:06 -------
Subject: Bug 17081
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: bryce@gcc.gnu.org 2004-08-18 18:05:40
Modified files:
libjava : ChangeLog
libjava/java/net: URI.java
Log message:
2004-08-18 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/17081
* java/net/URI.java (string): New field. Make all other fields
transient.
(readObject): Implemented.
(writeObject): Implemented.
(URI): Set 'string'.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3009&r2=1.3010
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/net/URI.java.diff?cvsroot=gcc&r1=1.5&r2=1.6
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17081
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgcj/17081] Deserializing java.net.URI fails
2004-08-18 12:58 [Bug libgcj/17081] New: Deserializing java.net.URI fails greenrd at greenrd dot org
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
2 siblings, 0 replies; 4+ messages in thread
From: mckinlay at redhat dot com @ 2004-08-18 18:08 UTC (permalink / raw)
To: java-prs
------- Additional Comments From mckinlay at redhat dot com 2004-08-18 18:08 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17081
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-18 18:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-18 12:58 [Bug libgcj/17081] New: Deserializing java.net.URI fails greenrd at greenrd dot org
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
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).