Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6516909 (cl spec) ClassLoader.loadClass() clarification to indicate it shouldn't be used for array classes
  3. JDK-8175391

Release Note: "sun.lang.ClassLoader.allowArraySyntax" system property is no longer supported

XMLWordPrintable

      The system property `sun.lang.ClassLoader.allowArraySyntax` was introduced as a temporary workaround to give customers time to remove their source dependency on calling `ClassLoader.loadClass` with the array syntax that is not supported since JDK 6. This temporary workaround is removed in JDK 9 and setting `sun.lang.ClassLoader.allowArraySyntax` system property will have no effect to `ClassLoader.loadClass`. Existing code that calls `ClassLoader.loadClass` to create a `Class` object of an array class shall be replaced with `Class.forName`; otherwise it will get `ClassNotFoundException`.

            mchung Mandy Chung (Inactive)
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: