@@ -37,21 +37,25 @@ public class GraalVMStaticAutofeature implements Feature {
37
37
38
38
public void beforeAnalysis (Feature .BeforeAnalysisAccess before ) {
39
39
final Class <?>[] needsHavingSimpleConstructors = StaticClassLists .typesNeedingDefaultConstructorAccessible ();
40
- final Class [] neddingAllConstructorsAccessible = StaticClassLists .typesNeedingAllConstructorsAccessible ();
40
+ final Class <?> [] needingAllConstructorsAccessible = StaticClassLists .typesNeedingAllConstructorsAccessible ();
41
41
//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 ) {
44
44
executables .add ( ReflectHelper .getDefaultConstructor ( c ) );
45
45
}
46
- for ( Class c : neddingAllConstructorsAccessible ) {
47
- for ( Constructor declaredConstructor : c .getDeclaredConstructors () ) {
46
+ for ( Class <?> c : needingAllConstructorsAccessible ) {
47
+ for ( Constructor <?> declaredConstructor : c .getDeclaredConstructors () ) {
48
48
executables .add ( declaredConstructor );
49
49
}
50
50
}
51
51
RuntimeReflection .register ( needsHavingSimpleConstructors );
52
- RuntimeReflection .register ( neddingAllConstructorsAccessible );
52
+ RuntimeReflection .register ( needingAllConstructorsAccessible );
53
53
RuntimeReflection .register ( StaticClassLists .typesNeedingArrayCopy () );
54
54
RuntimeReflection .register ( executables .toArray (new Executable [0 ]) );
55
55
}
56
56
57
+ @ Override
58
+ public String getDescription () {
59
+ return "Hibernate ORM GraalVM static reflection registration" ;
60
+ }
57
61
}
0 commit comments