-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P2
-
Affects Version/s: 8
-
Component/s: tools
Compiler does not allow Object protected methods to be used in lambda.
Minimal testcase:
interface I {
Object clone();
}
class Test {
I i = ()->null;
}
Produces error: attempting to assign weaker access privileges; was public
The following JCK tests fail:
lang/LMBD/lmbd002/lmbd00201m0/lmbd00201m0.html
lang/LMBD/lmbd002/lmbd00201m2/lmbd00201m2.html
Minimal testcase:
interface I {
Object clone();
}
class Test {
I i = ()->null;
}
Produces error: attempting to assign weaker access privileges; was public
The following JCK tests fail:
lang/LMBD/lmbd002/lmbd00201m0/lmbd00201m0.html
lang/LMBD/lmbd002/lmbd00201m2/lmbd00201m2.html