HHH-7650 JandexHelper cannot handle Class default values
This commit is contained in:
parent
78060d8eac
commit
04b4383e39
|
@ -360,6 +360,12 @@ public class JandexHelper {
|
|||
}
|
||||
try {
|
||||
val = Index.class.getClassLoader().loadClass( name ).getMethod( element ).getDefaultValue();
|
||||
if ( val != null ) {
|
||||
// Annotation parameters of type Class are handled using Strings
|
||||
if ( val instanceof Class ) {
|
||||
val = ( ( Class ) val).getName();
|
||||
}
|
||||
}
|
||||
DEFAULT_VALUES_BY_ELEMENT.put( fqElement, val );
|
||||
return val == null ? null : val;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue