Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5463

Hints (in NetBeans 12.3) report array parameters in record declarations incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 12.3
    • None
    • cnd - Other
    • None

    Description

      In this record declaration, for example:

      private static record MATH_METHOD(
      Method method, Class<?> result, Class<?>[] parameters) {}

      creates the NetBeans Hints message:

      The array is only read from, never written to

      This is inappropriate for any declaration, as this is a just a declaration of a parameter to what is an implicit constructor.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Bruce.Haddon@colorado.edu Bruce K. Haddon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: