8046817: JDK 8 schemagen tool does not generate xsd files for enum types
Reviewed-by: joehw, mkos
This commit is contained in:
parent
4775e0767d
commit
bed1fc268d
@ -135,7 +135,7 @@ public class SchemaGenerator extends AbstractProcessor {
|
||||
|
||||
private void filterClass(List<Reference> classes, Collection<? extends Element> elements) {
|
||||
for (Element element : elements) {
|
||||
if (element.getKind().equals(ElementKind.CLASS)) {
|
||||
if (element.getKind().equals(ElementKind.CLASS) || element.getKind().equals(ElementKind.ENUM)) {
|
||||
classes.add(new Reference((TypeElement) element, processingEnv));
|
||||
filterClass(classes, ElementFilter.typesIn(element.getEnclosedElements()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user