RFR: Compiler error for calling the method which returns void

bitter_fox bitterfoxc at gmail.com
Wed Dec 10 16:55:38 UTC 2014


Hi, Robert.

>From 2648, calling the method which returns void makes compiler error:
-> System.out.println("legal call")
(...)
+++++WRAP
package REPL;
public class $REPL2 {
    public static Object do_it() throws Throwable {
        System.out.println("legal call");
    }
}

-----
|  Error --
|  missing return statement
|  System.out.println("legal call");

Please review my patch:
webrev: http://cr.openjdk.java.net/~shinyafox/kulla/2/webrev.00/

Regards,
shinyafox
ShinyaYoshida(@bitter_fox)


More information about the kulla-dev mailing list