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

NPE thrown when refactoring a class

    XMLWordPrintableJSON

Details

    Description

      Whenever I refactor a class (e.g rename, move), or public methods of a class NetBeans 10, 11 and 11.1-beta2 throws a NPE.

      This is a multi-module Maven project.

      The Java source that is mentioned in the error message is always a test class using TestNG. I don't seem to get that error with projects that do not use TestNG.

      I have attached a complete Maven project that consistently reproduces this problem on two different Windows computers with OpenJDK 11, 12 and Oracle JDK 11

      Attachments

        1. messages.log
          101 kB
          Thomas Kellerer
        2. RefactorTestProject.zip
          51 kB
          Thomas Kellerer
        3. MyServiceTest.dump
          13 kB
          Thomas Kellerer
        4. netbeans-2240.mp4
          4.30 MB
          Thomas Kellerer

        Issue Links

          Activity

            People

              neilcsmith Neil C Smith
              shammat Thomas Kellerer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h