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

Var hint changes variable type for List.of()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      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

            People

            • Assignee:
              sakeshar Sarvesh Kesharwani
              Reporter:
              sakeshar Sarvesh Kesharwani
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: