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

12.1.4: Typo in non-normative text explaining candidate main methods

XMLWordPrintable

    • b07

        In 12.1.4 there is non-normative text explaining how this preview feature increases the number of methods that are considered a *candidate* for execution. It correctly observes there are 12 basic forms:

        1-3: {public, protected, package} void main()
        4-6: {public, protected, package} void main(String[])
        7-9: {public, protected, package} static void main()
        10-12: {public, protected, package} static void main(String[])

        It then *erroneously* claims that supporting `String...` as an alternative for `String[]` doubles this number to 24. It doesn't; it increases the number by 6 to 18.

              gbierman Gavin Bierman
              gbierman Gavin Bierman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: