Skip to content

Commit 59a06ee

Browse files
FroMagegavinking
authored andcommitted
[HHH-19586] Avoid inspecting private interface methods
1 parent 0e03b66 commit 59a06ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ else if ( hasAnnotation( method, JD_DELETE ) ) {
416416
}
417417
else if ( method.getEnclosingElement().getKind().isInterface()
418418
&& !method.isDefault()
419+
&& !method.getModifiers().contains(Modifier.PRIVATE)
419420
&& !isSessionGetter(method) ) {
420421
final String companionClassName = element.getQualifiedName().toString() + '$';
421422
if ( context.getElementUtils().getTypeElement(companionClassName) == null ) {

0 commit comments

Comments
 (0)