[ 
https://issues.apache.org/jira/browse/NETBEANS-3596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17024496#comment-17024496
 ] 

Peter Thanisch commented on NETBEANS-3596:
------------------------------------------

I have a couple of  further important observations about this bug. 

When the rename issue occurs, it is not just that it fails to do anything. 
There is a circumstance where Netbeans 11.2 makes some changes, then produces 
the error message. This can leave your application in an inconsistent state. 
For example,I wanted to rename a class and I used refactor/rename. Netbeans 
11.2 changed the name of the java file, then decided that it could not complete 
the renaming exercise and produced the error message, leaving the class name 
unchanged and therefore different from the file name.

Thus I would say that the refactor/rename feature should be disabled until 
there is a fix.  

Incidentally, if all you want to do is to rename a variable within a method, 
refactor/rename works correctly.

> Refactoring/Rename threw java.util.ConcurrentModificationException
> ------------------------------------------------------------------
>
>                 Key: NETBEANS-3596
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3596
>             Project: NetBeans
>          Issue Type: Bug
>          Components: cnd - Editor
>    Affects Versions: 11.2
>         Environment: Windows 10
>            Reporter: Peter Thanisch
>            Priority: Major
>             Fix For: 11.3
>
>         Attachments: 2019-12-15.png, messages.log
>
>
> In the development environment, I ask for a refactoring operation. The 
> operation that I requested was Refactor/Rename
> I get the following error message popping up:
> "Module Java Refactoring threw java.util.ConcurrentModificationException. 
> Please report a bug against Java Refactoring module and attach your 
> var/log/messages.log."
> See the attached screenshot for the error message displayed.
> As requested by the error message, I have also attached the messages.log file



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to