]> source.dussan.org Git - javassist.git/commit
Fix JASSIST-220 11/head
authorJohan Kaving <johan.kaving@symsoft.com>
Wed, 2 Jul 2014 14:45:46 +0000 (16:45 +0200)
committerJohan Kaving <johan.kaving@symsoft.com>
Thu, 3 Jul 2014 13:49:59 +0000 (15:49 +0200)
commitb510f4c43b12a283294718e906a7502958f71cd6
tree058dc10f3cbf0abaf95445812851970cae6b3e7a
parentc499faf6a8579cdfd266a22c2d5ef491d3bea6cb
Fix JASSIST-220

Static methods on interfaces in Java 8 means
that the INVOKESTATIC opcode can sometimes refer
to an item that is an InterfaceMethodrefInfo
(instead of a MethodrefInfo).

This is now handled in the
ConstPool.getMethodref...() methods by casting
to MemberrefInfo instead (since MemberrefInfo
contains all the needed information).
src/main/javassist/bytecode/ConstPool.java
src/test/javassist/JvstTest4.java
src/test/test4/JIRA220.java [new file with mode: 0644]