Skip to content

Commit 41bbd5d

Browse files
gastaldiSanne
authored andcommitted
HHH-15555 Fixing a typo, add Feature Description support
1 parent 48834a5 commit 41bbd5d

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

hibernate-graalvm/src/main/java/org/hibernate/graalvm/internal/GraalVMStaticAutofeature.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,25 @@ public class GraalVMStaticAutofeature implements Feature {
3737

3838
public void beforeAnalysis(Feature.BeforeAnalysisAccess before) {
3939
final Class<?>[] needsHavingSimpleConstructors = StaticClassLists.typesNeedingDefaultConstructorAccessible();
40-
final Class[] neddingAllConstructorsAccessible = StaticClassLists.typesNeedingAllConstructorsAccessible();
40+
final Class<?>[] needingAllConstructorsAccessible = StaticClassLists.typesNeedingAllConstructorsAccessible();
4141
//Size formula is just a reasonable guess:
42-
ArrayList<Executable> executables = new ArrayList<>( needsHavingSimpleConstructors.length + neddingAllConstructorsAccessible.length * 3 );
43-
for ( Class c : needsHavingSimpleConstructors ) {
42+
ArrayList<Executable> executables = new ArrayList<>( needsHavingSimpleConstructors.length + needingAllConstructorsAccessible.length * 3 );
43+
for ( Class<?> c : needsHavingSimpleConstructors ) {
4444
executables.add( ReflectHelper.getDefaultConstructor( c ) );
4545
}
46-
for ( Class c : neddingAllConstructorsAccessible ) {
47-
for ( Constructor declaredConstructor : c.getDeclaredConstructors() ) {
46+
for ( Class<?> c : needingAllConstructorsAccessible) {
47+
for ( Constructor<?> declaredConstructor : c.getDeclaredConstructors() ) {
4848
executables.add( declaredConstructor );
4949
}
5050
}
5151
RuntimeReflection.register( needsHavingSimpleConstructors );
52-
RuntimeReflection.register( neddingAllConstructorsAccessible );
52+
RuntimeReflection.register( needingAllConstructorsAccessible );
5353
RuntimeReflection.register( StaticClassLists.typesNeedingArrayCopy() );
5454
RuntimeReflection.register( executables.toArray(new Executable[0]) );
5555
}
5656

57+
@Override
58+
public String getDescription() {
59+
return "Hibernate ORM GraalVM static reflection registration";
60+
}
5761
}

hibernate-graalvm/src/main/java/org/hibernate/graalvm/internal/QueryParsingSupport.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ public void beforeAnalysis(BeforeAnalysisAccess access) {
4949
access.registerReachabilityHandler(this::enableHQLSupport, parserClazz);
5050
}
5151

52+
@Override
53+
public String getDescription() {
54+
return "Hibernate ORM HQL Parser Support";
55+
}
56+
5257
@AllowSysOut
5358
private void enableHQLSupport(DuringAnalysisAccess duringAnalysisAccess) {
5459
final boolean needsEnablingYet = triggered.compareAndSet( false, true );

0 commit comments

Comments
 (0)