parse lambdas with two interfaces

This commit is contained in:
Volker Berlin 2022-06-05 00:00:16 +02:00
parent f393802418
commit 56f46fcbe6
No known key found for this signature in database
GPG Key ID: 988423EF815BE4CB

View File

@ -56,6 +56,13 @@ public class BootstrapMethod {
samMethodType = (String)constantPool.get( input.readUnsignedShort() );
implMethod = (ConstantRef)constantPool.get( input.readUnsignedShort() );
instantiatedMethodType = (String)constantPool.get( input.readUnsignedShort() );
// skip extra parameters
// argCount is 5 if the method is LambdaMetafactory.altMetafactory
// occur if the Lambda type has 2 types compound with "&" like in java.time.chrono.AbstractChronology
for( int i = 3; i < argCount; i++ ) {
System.err.println( constantPool.get( input.readUnsignedShort() ) );
}
}
/**