HHH-13005 Upgrade to ByteBuddy 1.9.0
This commit is contained in:
parent
97b49349ad
commit
63b5df4096
|
@ -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'
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue