changeset 741:cd666534bc24

8046817: JDK 8 schemagen tool does not generate xsd files for enum types Reviewed-by: joehw, mkos
author aefimov
date Mon, 26 Jan 2015 22:36:45 +0300
parents 7a0dacd12a9e
children 3e52068e8b9d
files src/share/jaxws_classes/com/sun/tools/internal/jxc/ap/SchemaGenerator.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/jaxws_classes/com/sun/tools/internal/jxc/ap/SchemaGenerator.java	Wed Jan 21 17:08:09 2015 +0000
+++ b/src/share/jaxws_classes/com/sun/tools/internal/jxc/ap/SchemaGenerator.java	Mon Jan 26 22:36:45 2015 +0300
@@ -135,7 +135,7 @@
 
     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()));
             }