changeset 775:a5e99f4d067e jdk8u45-b06

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 5944c1915aa1
children d8faea5e290e
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 28 15:28:42 2015 -0800
+++ 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()));
             }