I'ce spent a few hours creating a short self contained example. To
reproduce this bug. Run the following in debug in eclipse with a
breakpoint as directed in the code.

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JComboBox;
import javax.swing.JFrame;


public class WillCrash {

        public static void main(String[] args) {

                JComboBox<String> combo = new JComboBox<>();
                JFrame jf = new JFrame();
                jf.setExtendedState(JFrame.MAXIMIZED_BOTH);
                jf.getContentPane().add(combo);
                combo.addItem("Test 1");
                combo.addItem("Test 2");
                combo.addActionListener(new ActionListener() {
                        
                        @Override
                        public void actionPerformed(ActionEvent e) {
                                //Put break point here to crash your system
                                System.out.println("Test");
                        }
                });
                jf.setVisible(true);
                jf.pack();
                                
        }

}

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1355182

Title:
  Debugging in eclipse causing system crash

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/1355182/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to