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

Var hint changes variable type for List.of()

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Var Hint is visible for the following scenario : 

      // code placeholder
      List<String> x = List.of();
      

      and applying the var hint changes the variable type of x to List<Object>

      Attachments

        Activity

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

          People

            sakeshar Sarvesh Kesharwani Assign to me
            sakeshar Sarvesh Kesharwani

            Dates

              Created:
              Updated:

              Slack

                Issue deployment