public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libgcj/9913: Deserializing a java.util.Vector fails
@ 2003-05-03  1:50 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2003-05-03  1:50 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gcj, java-prs, nobody, tromey

Synopsis: Deserializing a java.util.Vector fails

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Sat May  3 01:50:47 2003
Responsible-Changed-Why:
    I'm handling this
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Sat May  3 01:50:47 2003
State-Changed-Why:
    I tried this with the current 3.3 branch.
    It worked without error.
    I also modified the test program to print any
    exception it caught; nothing was printed.
    So, I think this is fixed in 3.3.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9913


^ permalink raw reply	[flat|nested] 2+ messages in thread

* libgcj/9913: Deserializing a java.util.Vector fails
@ 2003-03-03  6:46 gcj
  0 siblings, 0 replies; 2+ messages in thread
From: gcj @ 2003-03-03  6:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9913
>Category:       libgcj
>Synopsis:       Deserializing a java.util.Vector fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 03 06:46:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Shawn Walker
>Release:        gcj-3.2.2 (Debian prerelease)
>Organization:
>Environment:
Linux SpeedDemon 2.4.20 #2 Tue Jan 14 21:23:42 EST 2003 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
>Description:
When serializing, and then deserializing a Vector, a  NullPointerException is thrown.  The following is a fairly short example:

import java.io.*;
import java.util.*;

public class ST {
        public static final void main(String[] args) {
                Vector v=new Vector();
                FileOutputStream output;
                ObjectOutputStream oos;

                try {
                output=new FileOutputStream("testfile");
                oos=new ObjectOutputStream(output);
                oos.writeObject(v);
                oos.close();
                } catch (IOException e) {}

                FileInputStream input;
                ObjectInputStream ois;

                try {
                        input=new FileInputStream("testfile");
                        ois=new ObjectInputStream(input);
                        v=(Vector)ois.readObject();
                        ois.close();
                } catch (IOException e) {}
                  catch (ClassNotFoundException e) {}
        }
}
>How-To-Repeat:

>Fix:
Unknown
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-03  1:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-03  1:50 libgcj/9913: Deserializing a java.util.Vector fails tromey
  -- strict thread matches above, loose matches on Subject: below --
2003-03-03  6:46 gcj

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).