8046817: JDK 8 schemagen tool does not generate xsd files for enum types

Reviewed-by: joehw, mkos
This commit is contained in:
Aleksei Efimov 2015-01-26 12:36:37 +03:00
parent 4775e0767d
commit bed1fc268d

View File

@ -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()));
}