Open vicricker opened 2 years ago
i can still reproduce the NPE in NB ~22~ 23, however the freeze should not happen anymore. You had likely at work a "on save" action enabled, like formatting or import fixing, in past this could cause issues if javac failed during that action.
updated stacktrace (NB 22):
Apache NetBeans version
Apache NetBeans 12.6
What happened
Creating two same-named inner classes in a class causes an exception.
I realize that it is dumb to create two classes with the same name. It was actually caused by Netbeans. I updated a class and told the IDE to generate tests for the new methods. Since the class is abstract, it needs an Impl class for the test. The test already had one. Netbeans created a second one.
At work, if I try to save the file, it hang the IDE. I have to kill -9. At home, it shows an error with this exception:
How to reproduce
Did this work correctly in an earlier version?
No
Operating System
Fedora 35 Linux
JDK
OpenJDK 17.0.2
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
No response
Are you willing to submit a pull request?
No response
Code of Conduct
Yes