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

Regression: using popmenu causes VM crashed on Solaris when using I build

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      solaris_2.6

      Description

      Run the attach sample "appletviewer test.html", click anywhere in the
      appletviewer frame window after the applet have been loaded...

      test.html:

      <Applet Code=test_popupmenu.class Width=480 Height=360></Applet>

      test_popupmenu.java:

      import java.applet.*;
      import java.awt.*;
      import java.awt.event.*;
       
       
      public class test_popupmenu extends Applet
          implements ItemListener, MouseListener
      {
          PopupMenu menu;
          CheckboxMenuItem check;
       
      public void init()
      {
          menu = new PopupMenu("Test CheckboxMenuItem");
          check = new CheckboxMenuItem("Checkbox", true);
       
          menu.add(check);
          this.add(menu);
       
          check.addItemListener(this);
          this.addMouseListener(this);
      }
       
      public void itemStateChanged(ItemEvent evt)
      {

          System.out.println("check changed = " + evt);
          System.out.println("");
      }
       
      public void mouseClicked(MouseEvent evt)
      {
          menu.show(this, 10, 10);
          System.out.println("PopupMenu's parent=" + menu.getParent());
      }
       
      public void mousePressed(MouseEvent evt)
      {
      }
       
      public void mouseReleased(MouseEvent evt)
      {
      }
       
      public void mouseEntered(MouseEvent evt)
      {
      }
       
      public void mouseExited(MouseEvent evt)
      {
      }
       
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tdv Dmitri Trembovetski (Inactive)
              Reporter:
              sherman Xueming Shen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: