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 202342 - Wrong commenting on folded code
Summary: Wrong commenting on folded code
Status: RESOLVED DUPLICATE of bug 100564
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-20 07:42 UTC by gualtiero65
Modified: 2011-10-17 06:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The original method unfolded (84.60 KB, image/png)
2011-09-20 07:46 UTC, gualtiero65
Details
The method folded (41.70 KB, image/png)
2011-09-20 07:46 UTC, gualtiero65
Details
The method folded and commented out (38.12 KB, image/png)
2011-09-20 07:46 UTC, gualtiero65
Details
The commented method unfolded (with errors) (57.19 KB, image/png)
2011-09-20 07:47 UTC, gualtiero65
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gualtiero65 2011-09-20 07:42:39 UTC
[ BUILD # : 201109180600 ]
[ JDK VERSION : 1.6.27 ]

Hi,

when I comment an entire method which is currently folded in the editor, the
commenting function does comment out only the first line of the method while it
should comment all method lines.

See attached pictures for more details.

Gualtiero
Comment 1 gualtiero65 2011-09-20 07:46:04 UTC
Created attachment 110898 [details]
The original method unfolded
Comment 2 gualtiero65 2011-09-20 07:46:27 UTC
Created attachment 110899 [details]
The method folded
Comment 3 gualtiero65 2011-09-20 07:46:52 UTC
Created attachment 110900 [details]
The method folded and commented out
Comment 4 gualtiero65 2011-09-20 07:47:20 UTC
Created attachment 110901 [details]
The commented method unfolded (with errors)
Comment 5 Jiri Prox 2011-09-20 08:13:10 UTC
reproducible, but IMHO P3
Comment 6 Svata Dedic 2011-10-17 06:56:11 UTC
ACK, already reported. 
The defect is caused by various editor functions to respect document model (lines of text), but not visual appearance of the document (folding, ...).

*** This bug has been marked as a duplicate of bug 100564 ***