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

Unnecessary and confusing final modifier for records

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Records seem to be final per default, i.e., they can't be extended, and an error is produced when it is tried.
      However, it is still possible to add a final modifier when a record is defined. This modifier doesn't seem to change anything. Hence, it seems to be redundant and create unnecessary confusion.
      It would be good to not allow this modifier when a record is created.

      REGRESSION : Last worked in version 20.0.1


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: