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

can not add menus to popup menu in jdk1.1.1/Motif (works in jdk1.1)

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      sparc
    • OS:
      solaris_2.5.1
    • Verification:
      Verified

      Description

      <linda.schneider@eng 3/14/97>

      This was found using the jdk in /usr/local/java/jdk1.1.1/solaris
      (build date 3/14/97)

      Adding a menu to a popup menu (to get a cascade menu) throws an
      exception and does not display any component containing it

      This appears to work under jdk1.1 (/usr/local/java/jdk1.1/solaris
      dated 2/13/97)

      I am including a testcase (see attachments) which works
      under jdk1.1 and not jdk1.1.1

      Exception is:
      java.lang.NullPointerException
              at sun.awt.motif.MMenuPeer.<init>(MMenuPeer.java:44)
              at sun.awt.motif.MToolkit.createMenu(MToolkit.java:162)
              at java.awt.Menu.addNotify(Menu.java:93)
              at java.awt.PopupMenu.addNotify(PopupMenu.java:74)
              at java.awt.Component.addNotify(Component.java:2085)
              at java.awt.Label.addNotify(Label.java:102)
              at java.awt.Container.addImpl(Container.java:284)
              at java.awt.Container.add(Container.java:162)
              at MenuTest.init(MenuTest.java:16)
              at sun.applet.AppletPanel.run(AppletPanel.java:273)
              at java.lang.Thread.run(Thread.java)

        Attachments

          Activity

            People

            • Assignee:
              amfowler Anne Fowler (Inactive)
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: