Popup menus are not deserialized properly when associated with a component.

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 1.1
    • Component/s: client-libs
    • None
    • x86
    • windows_nt



      Name: sgC58550 Date: 03/24/97


      When a popup menu is save with a component, when the component is
      read back with object serialization, the parent field of all popups are not set
      to this.
      A piece of code needs to be added to readObject:
      if (popups != null && popups.size() > 0) {
        for(int i = 0; i < popups.size(); i++) {
          ((PopupMenu)popups.elementAt(i)).parent = this;
        }
      }
      This is the sample code that fixes the problem.
      ======================================================================

            Assignee:
            J. Duke
            Reporter:
            Sheri Good (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: