A DESCRIPTION OF THE PROBLEM :
Usage of C-style array declarations is discouraged, and even in the JDK code they have been replaced in some places, seeJDK-8272626.
The JLS currently uses C-style array declarations in multiple code examples. These array declarations should be changed (except for section 10.2 "Array Variables" and example 14.4-1 which intentionally show C-style array declarations).
Some of the C-style array declaration usage can be found by searching in https://docs.oracle.com/javase/specs/jls/se17/jls17.pdf for "[] =" or "[];". However, for you as maintainers it would probably be easiest and most reliable to directly grep the JLS source (which is apparently not public?).
Usage of C-style array declarations is discouraged, and even in the JDK code they have been replaced in some places, see
The JLS currently uses C-style array declarations in multiple code examples. These array declarations should be changed (except for section 10.2 "Array Variables" and example 14.4-1 which intentionally show C-style array declarations).
Some of the C-style array declaration usage can be found by searching in https://docs.oracle.com/javase/specs/jls/se17/jls17.pdf for "[] =" or "[];". However, for you as maintainers it would probably be easiest and most reliable to directly grep the JLS source (which is apparently not public?).
- relates to
-
JDK-8272626 Avoid C-style array declarations in java.*
-
- Resolved
-