< prev index next >

src/jdk.jextract/share/classes/com/sun/tools/jextract/AsmCodeFactory.java

Print this page

        

@@ -292,11 +292,11 @@
     @Override
     public Void visitEnum(EnumTree enumTree, JType jt) {
         // define enum constants in global_cw
         enumTree.constants().forEach(constant -> addConstant(global_cw, constant));
 
-        if (enumTree.isAnonymous()) {
+        if (enumTree.name().isEmpty()) {
             // We are done with anonymous enum
             return null;
         }
 
         // generate annotation class for named enum
< prev index next >