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

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

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            Bruce.Haddon@colorado.edu Bruce K. Haddon

            Dates

              Created:
              Updated:

              Slack

                Issue deployment