HHH-13005 Upgrade to ByteBuddy 1.9.0

This commit is contained in:
Guillaume Smet 2018-10-02 14:34:57 +02:00
parent 97b49349ad
commit 63b5df4096
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ ext {
weldVersion = '3.0.0.Final'
javassistVersion = '3.23.1-GA'
byteBuddyVersion = '1.8.17' // Now with JDK10 compatibility and preliminary support for JDK11
byteBuddyVersion = '1.9.0'
geolatteVersion = '1.4.0'

View File

@ -168,7 +168,7 @@ class PersistentAttributeTransformer implements AsmVisitorWrapper.ForDeclaredMet
DynamicType.Builder<?> applyTo(DynamicType.Builder<?> builder, boolean accessor) {
boolean compositeOwner = false;
builder = builder.visit( new AsmVisitorWrapper.ForDeclaredMethods().method( not( nameStartsWith( "$$_hibernate_" ) ), this ) );
builder = builder.visit( new AsmVisitorWrapper.ForDeclaredMethods().invokable( not( nameStartsWith( "$$_hibernate_" ) ), this ) );
for ( FieldDescription enhancedField : enhancedFields ) {
builder = builder
.defineMethod(
@ -250,7 +250,7 @@ class PersistentAttributeTransformer implements AsmVisitorWrapper.ForDeclaredMet
DynamicType.Builder<?> applyExtended(DynamicType.Builder<?> builder) {
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper enhancer = new FieldAccessEnhancer( managedCtClass, enhancementContext, classPool );
return builder.visit( new AsmVisitorWrapper.ForDeclaredMethods().method( not( nameStartsWith( "$$_hibernate_" ) ), enhancer ) );
return builder.visit( new AsmVisitorWrapper.ForDeclaredMethods().invokable( not( nameStartsWith( "$$_hibernate_" ) ), enhancer ) );
}
private static class FieldMethodReader implements ByteCodeAppender {