HHH-13821 Update to Byte Buddy 1.10.7

This commit is contained in:
Sanne Grinovero 2020-01-21 12:20:16 +00:00 committed by Sanne Grinovero
parent 6e5695c271
commit 2da1b79856
3 changed files with 5 additions and 4 deletions

View File

@ -23,7 +23,8 @@ ext {
weldVersion = '3.0.0.Final'
javassistVersion = '3.23.2-GA'
byteBuddyVersion = '1.9.11'
byteBuddyVersion = '1.10.7'
geolatteVersion = '1.3.0'

View File

@ -163,7 +163,7 @@ final class BiDirectionalAssociationHandler implements Implementation {
private static TypeDescription.Generic target(AnnotatedFieldDescription persistentField) {
AnnotationDescription.Loadable<Access> access = persistentField.getDeclaringType().asErasure().getDeclaredAnnotations().ofType( Access.class );
if ( access != null && access.loadSilent().value() == AccessType.FIELD ) {
if ( access != null && access.load().value() == AccessType.FIELD ) {
return persistentField.getType();
}
else {

View File

@ -514,7 +514,7 @@ public class EnhancerImpl implements Enhancer {
private AnnotationList doGetAnnotations() {
AnnotationDescription.Loadable<Access> access = fieldDescription.getDeclaringType().asErasure()
.getDeclaredAnnotations().ofType( Access.class );
if ( access != null && access.loadSilent().value() == AccessType.PROPERTY ) {
if ( access != null && access.load().value() == AccessType.PROPERTY ) {
Optional<MethodDescription> getter = getGetter();
if ( getter.isPresent() ) {
return getter.get().getDeclaredAnnotations();
@ -523,7 +523,7 @@ public class EnhancerImpl implements Enhancer {
return fieldDescription.getDeclaredAnnotations();
}
}
else if ( access != null && access.loadSilent().value() == AccessType.FIELD ) {
else if ( access != null && access.load().value() == AccessType.FIELD ) {
return fieldDescription.getDeclaredAnnotations();
}
else {