8010469: Bad assertion in LambdaToMethod
Add assertion in LambdaToMethod.serializedLambdaName Reviewed-by: jjg
This commit is contained in:
parent
4d16263250
commit
b67623d272
@ -1315,6 +1315,7 @@ public class LambdaToMethod extends TreeTranslator {
|
|||||||
// the generated lambda method will not have type yet, but the
|
// the generated lambda method will not have type yet, but the
|
||||||
// enclosing method's name will have been generated with this same
|
// enclosing method's name will have been generated with this same
|
||||||
// method, so it will be unique and never be overloaded.
|
// method, so it will be unique and never be overloaded.
|
||||||
|
Assert.check(owner.type != null || directlyEnclosingLambda() != null);
|
||||||
if (owner.type != null) {
|
if (owner.type != null) {
|
||||||
int methTypeHash = methodSig(owner.type).hashCode();
|
int methTypeHash = methodSig(owner.type).hashCode();
|
||||||
buf.append(Integer.toHexString(methTypeHash));
|
buf.append(Integer.toHexString(methTypeHash));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user