mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
HHH-10642 - [enhancer] Use INVOKEVIRTUAL instead of INVOKESPECIAL
This commit is contained in:
parent
68169968a5
commit
d95cecd91b
@ -523,12 +523,12 @@ protected void enhanceAttributesAccess(
|
||||
|
||||
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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user