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

Code completion fails when using chained method call and class variable

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 12.0
    • Fix Version/s: 12.1
    • Component/s: cnd - Code Completion
    • Labels:
      None

      Description

      This code fails to use code completion when using a class variable and chained method call.

      Path appVerName = Paths.get(appNewVer).getFileName();

       

      Paths.get() works with code completion but the getFileName() will fail.

       

       win 7, AdoptOpenJDK 15, 14, 11, 8.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mitm Robert Allen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: