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

AssertionError on rename of class, field, or method - fixed after computer restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 11.3
    • None
    • java - Refactoring
    • None
    • Operating System = Windows 10 version 10.0 running on amd64.
      Java; VM; Vendor = 14; OpenJDK 64-Bit Server VM 14+36; AdoptOpenJDK.
      Runtime = OpenJDK Runtime Environment 14+36.

    Description

      Fortunately, the bug was fixed by restarting my computer. Hopefully someone can learn something from the IDE log, maybe address some insane Windows edge case! 

       


       

      A popup window says:

      "Module Expression Language threw java.lang.AssertionError. Please report a bug against Expression Language module and attach your var/log/messages.log."

      If I click the Refactor button, the refactoring does work.

      Two files in two projects are affected. I can refactor classes and members in other files.

      The bug persists after:

      • Closing and re-opening the .java file in the editor
      • Closing and re-opening Netbeans
      • Deleting the %localappdata%\NetBeans\Cache folder

      I could not reproduce the problem on another computer running Windows 10.

      I've attached:

      • IDE log from %appdata%\NetBeans\11.3\var\log
      • Three screenshots of the popup warnings
      • Zipped project which exhibits the bug on my machine

      Attachments

        1. messages - Copy.log
          646 kB
          Peter Froud
        2. AssertionErrorTest project.zip
          18 kB
          Peter Froud
        3. AssertionError on method rename.png
          14 kB
          Peter Froud
        4. AssertionError on field rename.png
          14 kB
          Peter Froud
        5. AssertionError on class rename.png
          14 kB
          Peter Froud

        Activity

          People

            Unassigned Unassigned
            pfroud-erp Peter Froud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: