PavelTurk commented on issue #3725: URL: https://github.com/apache/netbeans/issues/3725#issuecomment-1957875703
I think I found a way how to reproduce this bug: ``` Product Version: Apache NetBeans IDE 21 Java: 21.0.1; OpenJDK 64-Bit Server VM 21.0.1+12-29 Runtime: OpenJDK Runtime Environment 21.0.1+12-29 System: Linux version 5.15.0-88-generic running on amd64; UTF-8; en_US (nb) ``` 1. git clone https://github.com/PavelTurk/nb-3725 2. Open API and Imp1 module: 3. In module API delete class `Foo3`:<br> <br> 4. In module API open and rename interface `Interface3`:<br>  <br> Right click on `Interface3` -> Refactor -> Rename. Enter new name `Interface100`. Click Refactor.<br> <br> 5. Ok. We deleted class that is used, of course we will have an error. Create in the same package class `NewClass` with the following content:  Try to rename `NewClass` to `NewClass2`. It is renamed. **Conclusion.** As I understand the problem is in the following factors: 1) when there is a class that is heavy used by other classes and this class is refactored then NB has the problems with renaming and moving classes. 2) The reason of the problem can be linked to the factor that when JPMS modules are used NB doesn't update internal information in time. @mbien How do you think, is this enough to fix the issue? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
