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.
Summary: | Wrong guarded block detection after variable declaration block | ||
---|---|---|---|
Product: | java | Reporter: | Jiri Prox <jiriprox> |
Component: | Source | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | mmirilovic |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jiri Prox
2007-12-05 09:51:01 UTC
moving opened issues from TM <= 6.1 to TM=Dev Overtake. reproducible with 6.7m3 Reassigning all moonko's java/source bugs to myself. reproducible in NB 7.2.1 ... only if you place it right after the block, any new line between the block and new declaration allows delete without any problems Possibly a refactoring issue ? It seems that the filtered (without GEN-BEGIN / GEN-END) markers is taken as a base, but the refactored result it used without filtering; which makes the IDE (incorrectly) detect change in the guarded area. Please investigate (In reply to Svata Dedic from comment #6) > Possibly a refactoring issue ? It seems that the filtered (without GEN-BEGIN > / GEN-END) markers is taken as a base, but the refactored result it used > without filtering; which makes the IDE (incorrectly) detect change in the > guarded area. > > Please investigate The comment, the one with GEN-END, is tied to the variable decl. int x;. Removing this variable tree from the class, CasualDiff incorrectly removes the comment with it. The diffs from CasualDiff are used to check if there will be changes in the guarded area. This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |