File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 10
10
import javax .lang .model .element .VariableElement ;
11
11
import javax .lang .model .type .ArrayType ;
12
12
import javax .lang .model .type .DeclaredType ;
13
+ import javax .lang .model .type .IntersectionType ;
13
14
import javax .lang .model .type .TypeKind ;
14
15
import javax .lang .model .type .TypeMirror ;
15
16
import javax .lang .model .type .TypeVariable ;
@@ -411,9 +412,11 @@ else if ( type instanceof WildcardType wildcardType ) {
411
412
else if ( type instanceof ArrayType arrayType ) {
412
413
return resolveAsString ( arrayType .getComponentType () ) + "[]" ;
413
414
}
415
+ else if ( type instanceof IntersectionType intersectionType ) {
416
+ return intersectionType .getBounds ().stream ().map ( this ::resolveAsString ).collect ( joining ( "&" ) );
417
+ }
414
418
else {
415
- System .err .printf ( "Type kind %s - %s%n" , type .getKind (), type );
416
- throw new UnsupportedOperationException ();
419
+ return type .toString ();
417
420
}
418
421
}
419
422
You can’t perform that action at this time.
0 commit comments