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 129672 - Code folds raise exception when incorrectly inserted
Summary: Code folds raise exception when incorrectly inserted
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-10 15:51 UTC by Petr Dvorak
Modified: 2008-07-18 17:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 28347


Attachments
stacktrace (6.16 KB, text/plain)
2008-05-12 11:30 UTC, kate
Details
stacktrace (6.62 KB, text/plain)
2008-05-12 11:48 UTC, kate
Details
stacktrace (6.16 KB, text/plain)
2008-06-16 09:50 UTC, Ivan Sidorkin
Details
stacktrace (3.92 KB, text/plain)
2008-06-17 07:59 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2008-03-10 15:51:32 UTC
Product Version: NetBeans IDE Dev (Build 200803100002)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.2 running on i386; MacCentralEurope; cs_CZ (nb)

1. Create a closing code fold "//</editor-fold>" on the empty line.
2. Create the opening editor fold "//<editor-fold>" on the same line RIGHT AFTER the closing code fold.
3. Copy the opening code fold (Select it & Ctrl+C)
4. Delete the opening fold from the code (Delete)
5. Go to the beginning of the line, right before the closing code fold (Home)
6. Paste the opening code fold right before the closing code fold (Ctrl+V)

The cursor moves to the beginning of the line after the last point. Start typing. The exception is thrown. Stack trace can be found on statistics page.
Comment 1 Vitezslav Stejskal 2008-03-11 17:25:06 UTC
Reproducible in a dev build.
Comment 2 Jiri Prox 2008-04-11 00:46:11 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 3 kate 2008-05-12 11:30:40 UTC
Build: NetBeans IDE Dev (Build 200805120001)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b14
OS: Windows XP, 5.1, x86

User Comments: 
Comment 4 kate 2008-05-12 11:30:43 UTC
Created attachment 61251 [details]
stacktrace
Comment 5 kate 2008-05-12 11:48:54 UTC
Build: NetBeans IDE Dev (Build 200805120001)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b14
OS: Windows XP, 5.1, x86

User Comments: 
Mobility Application - Flow Designer.
I dragged Entry Point to Flow Designer.Then invoked popup menu on it and selected "Go to Source".
Comment 6 kate 2008-05-12 11:48:57 UTC
Created attachment 61252 [details]
stacktrace
Comment 7 Ivan Sidorkin 2008-06-16 09:50:30 UTC
Created attachment 62858 [details]
stacktrace
Comment 8 Martin Fousek 2008-06-17 07:59:15 UTC
Created attachment 62906 [details]
stacktrace
Comment 9 rbalada 2008-07-18 16:20:28 UTC
Isn't this a duplicate of issue 137591? At least stack traces look very similar. The issue 137591 is marked as
verified/fixed. Is this issue still reproducible in recent trunk builds?
Comment 10 Petr Dvorak 2008-07-18 17:21:24 UTC
This issue is not reproducible in 200807170007 trunk build.
Comment 11 Petr Dvorak 2008-07-18 17:22:14 UTC
Verified.