JDK-8004962 : Code generation crash with lambda and local classes
Type:Bug
Component:tools
Sub-Component:javac
Affected Version:8
Priority:P3
Status:Closed
Resolution:Fixed
Submitted:2012-12-12
Updated:2014-04-21
Resolved:2013-03-05
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
The following code crashes javac
interface SAM {
Object m();
}
class Test {
static void test(String s) {
class Foo {
void m() {
Object o = s;
}
}
SAM s2 = ()->new Foo(); }
}