JDK-8175391 : Release Note: "sun.lang.ClassLoader.allowArraySyntax" system property is no longer supported
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang:class_loading
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2017-02-22
  • Updated: 2017-09-22
  • Resolved: 2017-09-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Description
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`.