Why Java doesn't support method references ?
My main source of concern is how unellegant the code for handling gui events looks.
At first Java came up with inner classes to support event handling, later it was anonymous inner classes. Hell, isn't it clearer writting :
frame.addWindowListener(WindowClosing() );
public void windowClosing(WindowEvent e) {
System.exit(0);
}
than writting
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});

