Skip to content

Commit 68eb73b

Browse files
committed
HHH-19425 fix missing '.class' when annotations copied to repo implementations
1 parent b9419e0 commit 68eb73b

File tree

1 file changed

+5
-0
lines changed
  • tooling/metamodel-generator/src/main/java/org/hibernate/processor

1 file changed

+5
-0
lines changed

tooling/metamodel-generator/src/main/java/org/hibernate/processor/ClassWriter.java

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import javax.lang.model.element.ElementKind;
1616
import javax.lang.model.element.TypeElement;
1717
import javax.lang.model.element.VariableElement;
18+
import javax.lang.model.type.TypeMirror;
1819
import javax.tools.Diagnostic;
1920
import javax.tools.FileObject;
2021
import java.io.IOException;
@@ -174,6 +175,10 @@ else if (argument instanceof AnnotationMirror) {
174175
AnnotationMirror childAnnotation = (AnnotationMirror) argument;
175176
printAnnotation( childAnnotation, pw );
176177
}
178+
else if (argument instanceof TypeMirror) {
179+
pw.print(argument);
180+
pw.print(".class");
181+
}
177182
else if (argument instanceof List) {
178183
final List<? extends AnnotationValue> list =
179184
(List<? extends AnnotationValue>) argument;

0 commit comments

Comments
 (0)