We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aba8500 commit 158bebeCopy full SHA for 158bebe
src/test/java/org/hibernate/models/annotations/DefaultValueTests.java
@@ -68,7 +68,9 @@ private void doTest(Index index) {
68
assertThat( annotationUsage.getClassDetails( "someClassValue" ) ).isNotNull();
69
assertThat( annotationUsage.getClassDetails( "someClassValue" ).toJavaClass() ).isEqualTo( Entity.class );
70
71
+ // apparently the models code does not use this method directly, but ORM does. This is the one that was leading to NPE
72
final MutableAnnotationUsage<CustomAnnotation> created = descriptor.createUsage( null, buildingContext );
73
+ assertThat( created.getClassDetails( "someClassValue" ) ).isNull();
74
}
75
76
@Target( ElementType.TYPE )
0 commit comments