< prev index next >

test/langtools/tools/javac/classfiles/attributes/innerclasses/InnerClassesInLocalClassTest.java

Print this page
*** 51,11 ***
      public InnerClassesInLocalClassTest() {
          innerClassesData = new ArrayList<>();
          for (Modifier outerModifier : LOCAL_CLASS_MODIFIERS) {
              StringBuilder sb = new StringBuilder();
              sb.append(outerModifier.getString()).append(' ');
!             sb.append("class Local {");
              Map<String, Set<String>> class2Flags = new HashMap<>();
              for (int i = 0; i < LOCAL_CLASS_MODIFIERS.length; ++i) {
                  Modifier innerModifier = LOCAL_CLASS_MODIFIERS[i];
                  sb.append(innerModifier.getString()).append(' ')
                          .append("class").append(' ')
--- 51,11 ---
      public InnerClassesInLocalClassTest() {
          innerClassesData = new ArrayList<>();
          for (Modifier outerModifier : LOCAL_CLASS_MODIFIERS) {
              StringBuilder sb = new StringBuilder();
              sb.append(outerModifier.getString()).append(' ');
!             sb.append("class Local { int f; "); // impose identity to make testing predictable.
              Map<String, Set<String>> class2Flags = new HashMap<>();
              for (int i = 0; i < LOCAL_CLASS_MODIFIERS.length; ++i) {
                  Modifier innerModifier = LOCAL_CLASS_MODIFIERS[i];
                  sb.append(innerModifier.getString()).append(' ')
                          .append("class").append(' ')

*** 149,10 ***
--- 149,11 ---
          return list;
      }
  
      private Set<String> getFlags(Modifier modifier) {
          HashSet<String> set = new HashSet<>();
+         set.add("ACC_IDENTITY");
          if (modifier != Modifier.EMPTY) {
              set.add("ACC_" + modifier.getString().toUpperCase());
          }
          return set;
      }
< prev index next >