Details
-
Bug
-
Resolution: Fixed
-
P2
-
8
Description
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