HHH-10642 - [enhancer] Use INVOKEVIRTUAL instead of INVOKESPECIAL

This commit is contained in:
barreiro 2016-03-26 16:57:04 +00:00 committed by Gail Badner
parent 5c567bb4bf
commit ac9748adeb
1 changed files with 2 additions and 2 deletions

View File

@ -512,12 +512,12 @@ public class PersistentAttributesEnhancer extends Enhancer {
if ( op == Opcode.GETFIELD ) {
final int methodIndex = MethodWriter.addMethod( constPool, attributeMethods.getReader() );
itr.writeByte( Opcode.INVOKESPECIAL, index );
itr.writeByte( Opcode.INVOKEVIRTUAL, index );
itr.write16bit( methodIndex, index + 1 );
}
else {
final int methodIndex = MethodWriter.addMethod( constPool, attributeMethods.getWriter() );
itr.writeByte( Opcode.INVOKESPECIAL, index );
itr.writeByte( Opcode.INVOKEVIRTUAL, index );
itr.write16bit( methodIndex, index + 1 );
}
}