Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8336747

[lworld] Test TestPrimitiveAndArrayModifiers.java fails because of the ACC_IDENTITY flag

XMLWordPrintable

      Test java/lang/Class/getModifiers/TestPrimitiveAndArrayModifiers.java fails since the ACC_IDENTITY flags has been added to arrays.
      The test is also confused by the ACC_IDENTITY flag value, and interpreted it as ACC_SYNCHRONIZED (they have the same numerical value).

      Stack trace:

      java.lang.RuntimeException: Expected public abstract finalon TestPrimitiveAndArrayModifiers, but got public abstract final synchronized
      at TestPrimitiveAndArrayModifiers.testArrays(TestPrimitiveAndArrayModifiers.java:75)
      at TestPrimitiveAndArrayModifiers.main(TestPrimitiveAndArrayModifiers.java:50)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1575)

            rriggs Roger Riggs
            fparain Frederic Parain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: