This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[dev-200508091800, JDK 1.5.0_04] See attached screenshots. They show confused code folding feature when editing form file. foldbefore.png image shows unfolded file and foldafter.png shows the source file after folding one fold - displayed source file is wrong, one method header is hidden. Don't know how to reproduce, here is what I was doing: I created form file and put couple of panels and components there, after that I was editing event handling methods for some buttons. Then I renamed those buttons using their properties dialogs. Then I realized that code folding is confused.
Created attachment 23641 [details] screenshot 1
Created attachment 23642 [details] screenshot 2
Code folding was corrected after adding new event handling method for another button.
It seems to be more bug in java, it looks like broken positions in java file. I wanted to run Refac|Rename on some fields and refactoring seems to be completly confused too. See attached screenshots that shows what refactoring dialog was shown when I invoked rename over selected fields.
Created attachment 23709 [details] one more screenshot of broken code folding
Created attachment 23710 [details] error during rename 1
Created attachment 23711 [details] error during rename 2
Created attachment 23712 [details] error during rename 3
Created attachment 23713 [details] error during rename 4
If there is reproducible testcase it would be P2.
Happened couple times from the time I reported the issue, but still don't know how to reproduce.
Might be related to issue #61833.
*** This issue has been marked as a duplicate of 61833 ***
V/C
Reorganization of java component