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

new SimpleFileVisitor used in anonymous class breaks code completion, code highlighting, fix error suggestions, project commands.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 12.0
    • 12.1
    • cnd - Code Completion
    • None
    • win 7, javaFX gradle project

    Description

      Using SimpleFileVisitor in anonymous class breaks code completion, highlighting, error fixing, suggestions, refactor, delete, navigator, just about everything in the editor for that project.

       

      Files.walkFileTree(sourceDirPath, new SimpleFileVisitor<Path>(){

      });

       

      Edit: Nothing special to get it to do this, just copy and paste the above incomplete code and it will break netbeans for that file its in. The other files in same project will continue to work as normal. Switch to another file and back into the file you paste the snippet into and you will see navigator fail as well as code completion, etc., just for that file.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: