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>
   ![Screenshot from 2024-02-21 
22-03-49](https://github.com/apache/netbeans/assets/10261361/b19b1b08-5c25-409b-8fbc-f95791d9e5b1)<br>
   4. In module API open and rename interface `Interface3`:<br>
   ![Screenshot from 2024-02-21 
22-24-13](https://github.com/apache/netbeans/assets/10261361/2d8fee1f-70f1-4eff-a37a-9d28bca76fe4)
 <br>
   Right click on `Interface3` -> Refactor -> Rename. Enter new name 
`Interface100`. Click Refactor.<br>
   ![Screenshot from 2024-02-21 
22-26-46](https://github.com/apache/netbeans/assets/10261361/ebacc1e3-f2c6-42d4-9079-87d91b658096)<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:
   ![Screenshot from 2024-02-21 
22-30-14](https://github.com/apache/netbeans/assets/10261361/9fe34740-9051-4d97-8552-2268d07ab6bf)
   
   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

Reply via email to