< prev index next >

test/jdk/java/lang/reflect/AccessFlag/VersionedLocationsTest.java

Print this page
@@ -49,11 +49,11 @@
   * PUBLIC       step
   * PRIVATE      step
   * PROTECTED    step
   * STATIC       step
   * FINAL        two-step
-  * SUPER        invariant
+  * SUPER        step
   * OPEN         step
   * TRANSITIVE   step
   * SYNCHRONIZED invariant
   * STATIC_PHASE step
   * VOLATILE     invariant

@@ -85,11 +85,11 @@
       * Invariant access flags have the same set of locations for each
       * class file format version.
       */
      private static void testInvariantAccessFlags() {
          Set<AccessFlag> invariantAccessFlags =
-             Set.of(SUPER, SYNCHRONIZED, VOLATILE, TRANSIENT, NATIVE);
+             Set.of(SYNCHRONIZED, VOLATILE, TRANSIENT, NATIVE);
          for(var accessFlag : invariantAccessFlags) {
              Set<AccessFlag.Location> expected = accessFlag.locations();
  
              for(var cffv : ClassFileFormatVersion.values()) {
                  compareLocations(accessFlag.locations(), accessFlag, cffv);

@@ -113,10 +113,14 @@
  
              new StepFunctionTC(STATIC,
                                 removeInnerClass(STATIC.locations()),
                                 ClassFileFormatVersion.RELEASE_1),
  
+             new StepFunctionTC(SUPER,
+                                Set.of(AccessFlag.Location.CLASS),
+                                ClassFileFormatVersion.RELEASE_22),
+ 
              new StepFunctionTC(OPEN,
                                 Set.of(),
                                 ClassFileFormatVersion.RELEASE_9),
  
              new StepFunctionTC(TRANSITIVE,
< prev index next >