Created
April 13, 2013 04:12
-
-
Save mergeconflict/5376897 to your computer and use it in GitHub Desktop.
Java 8 lulz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.function.Function; | |
public interface Bug { | |
static void bug() { | |
bug(a -> a); | |
} | |
static void bug(Function<?, ?> f) {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jdk8 > javac Bug.java | |
An exception has occurred in the compiler (1.8.0-ea). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you. | |
java.lang.NullPointerException | |
at com.sun.tools.javac.jvm.Code.emitop0(Code.java:546) | |
at com.sun.tools.javac.jvm.Items$SelfItem.load(Items.java:367) | |
at com.sun.tools.javac.jvm.Gen.genArgs(Gen.java:913) | |
at com.sun.tools.javac.jvm.Gen.visitApply(Gen.java:1752) | |
at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1440) | |
at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:894) | |
at com.sun.tools.javac.jvm.Gen.genArgs(Gen.java:913) | |
at com.sun.tools.javac.jvm.Gen.visitApply(Gen.java:1752) | |
at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1440) | |
at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:894) | |
at com.sun.tools.javac.jvm.Gen.visitExec(Gen.java:1698) | |
at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1271) | |
at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:684) | |
at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:719) | |
at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:705) | |
at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:756) | |
at com.sun.tools.javac.jvm.Gen.visitBlock(Gen.java:1094) | |
at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:884) | |
at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:684) | |
at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:719) | |
at com.sun.tools.javac.jvm.Gen.genMethod(Gen.java:969) | |
at com.sun.tools.javac.jvm.Gen.visitMethodDef(Gen.java:942) | |
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:771) | |
at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:684) | |
at com.sun.tools.javac.jvm.Gen.genClass(Gen.java:2359) | |
at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:753) | |
at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1547) | |
at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1511) | |
at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:909) | |
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:868) | |
at com.sun.tools.javac.main.Main.compile(Main.java:516) | |
at com.sun.tools.javac.main.Main.compile(Main.java:376) | |
at com.sun.tools.javac.main.Main.compile(Main.java:365) | |
at com.sun.tools.javac.main.Main.compile(Main.java:356) | |
at com.sun.tools.javac.Main.compile(Main.java:76) | |
at com.sun.tools.javac.Main.main(Main.java:61) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment