- 
    Bug 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    8
- 
    jdk8 b92 
- 
        b100
- 
        Verified
                    import javafx.scene.input.MouseEvent;
import javafx.scene.shape.Rectangle;
public class Issue {
public static void main(String[] args) {
Rectangle r = new Rectangle();
r.addEventHandler(MouseEvent.MOUSE_CLICKED, t -> System.out.println("dfdf"));
}
}
//output
Issue.java:9: error: 'void' type not allowed here
r.addEventHandler(MouseEvent.MOUSE_CLICKED, t -> System.out.println("dfdf"));
                                                                           
1 error
            
import javafx.scene.shape.Rectangle;
public class Issue {
public static void main(String[] args) {
Rectangle r = new Rectangle();
r.addEventHandler(MouseEvent.MOUSE_CLICKED, t -> System.out.println("dfdf"));
}
}
//output
Issue.java:9: error: 'void' type not allowed here
r.addEventHandler(MouseEvent.MOUSE_CLICKED, t -> System.out.println("dfdf"));
1 error
- duplicates
- 
                    JDK-8016060 Lambda isn't compiled with return statement -           
- Closed
 
-