HHH-16261 - Not ignoring JDK 14 records when processing
This commit is contained in:
parent
672eaed86c
commit
dad3f500eb
|
@ -223,7 +223,7 @@ public class JPAMetaModelEntityProcessor extends AbstractProcessor {
|
||||||
private void handleRootElementAnnotationMirrors(final Element element) {
|
private void handleRootElementAnnotationMirrors(final Element element) {
|
||||||
List<? extends AnnotationMirror> annotationMirrors = element.getAnnotationMirrors();
|
List<? extends AnnotationMirror> annotationMirrors = element.getAnnotationMirrors();
|
||||||
for ( AnnotationMirror mirror : annotationMirrors ) {
|
for ( AnnotationMirror mirror : annotationMirrors ) {
|
||||||
if ( !ElementKind.CLASS.equals( element.getKind() ) ) {
|
if ( !ElementKind.CLASS.equals( element.getKind() ) && !ElementKind.RECORD.equals( element.getKind() ) ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -316,7 +316,7 @@ class BasicAttributeVisitor extends SimpleTypeVisitor6<Boolean, Element> {
|
||||||
return Boolean.TRUE;
|
return Boolean.TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ElementKind.CLASS.equals( element.getKind() ) || ElementKind.INTERFACE.equals( element.getKind() ) ) {
|
if ( ElementKind.CLASS.equals( element.getKind() ) || ElementKind.INTERFACE.equals( element.getKind() ) || ElementKind.RECORD.equals( element.getKind() ) ) {
|
||||||
TypeElement typeElement = ( (TypeElement) element );
|
TypeElement typeElement = ( (TypeElement) element );
|
||||||
String typeName = typeElement.getQualifiedName().toString();
|
String typeName = typeElement.getQualifiedName().toString();
|
||||||
if ( Constants.BASIC_TYPES.contains( typeName ) ) {
|
if ( Constants.BASIC_TYPES.contains( typeName ) ) {
|
||||||
|
|
Loading…
Reference in New Issue