Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Decompiling Bug.class after compiling the attached patch, with org.codehaus.janino.Compiler Bug.java. In Bug.bug(), the call to call(String)) is compiled as INVOKEVIRTUAL; it should be compiled as INVOKESTATIC.
If I explicitly do BaseTwo.call(String), then instead of a runtime error, I get a compile time error; the message being: 'Instance method "call" cannot be called in a static context.'
This patch fixes the problem. findMostSpecificIInvocable() returns a new IMethod, with a new set of thrown exceptions; however, it always hard-codes isAbstract and isStatic.