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

Remove C-style arrays from code examples in JLS

XMLWordPrintable

      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, see JDK-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?).


            abuckley Alex Buckley
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: