Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.7, 4.0.2
-
None
Description
After upgrading to 3.0.7, using interfaceField::method is resulting in bytecode output containing an InterfaceMethodref that looks as expected. When running it in the Eclipse JUnit runner, however (which I think is unimportant), I'm getting a loading error from the JVM:
Caused by: java.lang.ClassFormatError: Invalid constant pool index 130 in class file com/example/sendgrid/SendgridMailSender (not a method)
where the offending constant is
#130 = InterfaceMethodref #126.#129 // com/sendgrid/SendGridAPI.api:(Lcom/sendgrid/Request;)Lcom/sendgrid/Response;
from the 4.6.8 SendGrid SDK.
Compiling with 3.0.6 seems to work. Replacing :: with .& seems to work.
The JVM is 11.0.9-hs-adpt.