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.

Bug 62046 - Confused code folding and refactoring
Summary: Confused code folding and refactoring
Status: CLOSED DUPLICATE of bug 61833
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2005-08-10 14:07 UTC by Milan Kubec
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot 1 (27.27 KB, image/png)
2005-08-10 14:07 UTC, Milan Kubec
Details
screenshot 2 (32.69 KB, image/png)
2005-08-10 14:08 UTC, Milan Kubec
Details
one more screenshot of broken code folding (30.29 KB, image/png)
2005-08-10 21:28 UTC, Milan Kubec
Details
error during rename 1 (23.04 KB, image/png)
2005-08-10 21:29 UTC, Milan Kubec
Details
error during rename 2 (29.00 KB, image/png)
2005-08-10 21:29 UTC, Milan Kubec
Details
error during rename 3 (29.09 KB, image/png)
2005-08-10 21:30 UTC, Milan Kubec
Details
error during rename 4 (22.77 KB, image/png)
2005-08-10 21:30 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2005-08-10 14:07:01 UTC
[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.
Comment 1 Milan Kubec 2005-08-10 14:07:39 UTC
Created attachment 23641 [details]
screenshot 1
Comment 2 Milan Kubec 2005-08-10 14:08:00 UTC
Created attachment 23642 [details]
screenshot 2
Comment 3 Milan Kubec 2005-08-10 14:35:06 UTC
Code folding was corrected after adding new event handling method for another
button.
Comment 4 Milan Kubec 2005-08-10 21:27:16 UTC
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.
Comment 5 Milan Kubec 2005-08-10 21:28:26 UTC
Created attachment 23709 [details]
one more screenshot of broken code folding
Comment 6 Milan Kubec 2005-08-10 21:29:03 UTC
Created attachment 23710 [details]
error during rename 1
Comment 7 Milan Kubec 2005-08-10 21:29:37 UTC
Created attachment 23711 [details]
error during rename 2
Comment 8 Milan Kubec 2005-08-10 21:30:09 UTC
Created attachment 23712 [details]
error during rename 3
Comment 9 Milan Kubec 2005-08-10 21:30:38 UTC
Created attachment 23713 [details]
error during rename 4
Comment 10 Milan Kubec 2005-08-10 21:31:53 UTC
If there is reproducible testcase it would be P2.
Comment 11 Milan Kubec 2005-08-12 12:45:38 UTC
Happened couple times from the time I reported the issue, but still don't know
how to reproduce.
Comment 12 Milan Kubec 2005-08-12 15:06:47 UTC
Might be related to issue #61833.
Comment 13 Jan Becicka 2005-08-26 13:22:16 UTC

*** This issue has been marked as a duplicate of 61833 ***
Comment 14 Milan Kubec 2005-08-30 15:48:45 UTC
V/C
Comment 15 Quality Engineering 2007-09-20 11:57:08 UTC
Reorganization of java component