Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6690068

REG: serialization proccess throws NPE

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b23
    • Introduced In Version:
    • Resolved In Build:
      b23
    • CPU:
      generic
    • OS:
      generic

      Description

      Deserialization of any container throws NPE due to a missed initilization inside readObject() method.
       private void readObject(ObjectInputStream s)throws ClassNotFoundException, IOException{
              ObjectInputStream.GetField f = s.readFields();
              Component [] tmpComponent = (Component[])f.get("component", EMPTY_ARRAY);
      >> component.addAll(Arrays.asList(tmpComponent));

      This is a regression of CR 6616323.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dav Andrei Dmitriev (Inactive)
              Reporter:
              dav Andrei Dmitriev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: