From c43ba563da9ade281a62dcfd316c95737c73e9a5 Mon Sep 17 00:00:00 2001 From: barreiro Date: Sat, 26 Mar 2016 16:57:04 +0000 Subject: [PATCH] HHH-10642 - [enhancer] Use INVOKEVIRTUAL instead of INVOKESPECIAL (cherry picked from commit d95cecd91bba082bb3795b97c1a7a68f8aadf8d6) --- .../enhance/internal/PersistentAttributesEnhancer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/PersistentAttributesEnhancer.java b/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/PersistentAttributesEnhancer.java index bc7e7781a4..d9d1692ef5 100644 --- a/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/PersistentAttributesEnhancer.java +++ b/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/PersistentAttributesEnhancer.java @@ -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 ); } }