-
Bug
-
Resolution: Fixed
-
P3
-
8, 9
-
b78
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8136282 | emb-9 | Vicente Arturo Romero Zaldivar | P3 | Resolved | Fixed | team |
This test case:
class Tmp
{
final FunctionalInterface notInitialized = ()-> {
FunctionalInterface simpleVariable = () -> notInitialized.foo();
};
}
interface FunctionalInterface {
void foo();
}
should be rejected by javac as notInitialized is being used in the initializer
reported by Ella Nekipelova
class Tmp
{
final FunctionalInterface notInitialized = ()-> {
FunctionalInterface simpleVariable = () -> notInitialized.foo();
};
}
interface FunctionalInterface {
void foo();
}
should be rejected by javac as notInitialized is being used in the initializer
reported by Ella Nekipelova
- backported by
-
JDK-8136282 javac is accepting a self-referencing variable initializer inside a lambda expression
- Resolved
- relates to
-
JDK-8024809 javac, some lambda programs are rejected by flow analysis
- Closed