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

Summary: Code folds raise exception when incorrectly inserted
Product: editor Reporter: Petr Dvorak <joshis>
Component: Code foldingAssignee: issues@editor <issues>
Status: VERIFIED FIXED    
Severity: blocker CC: lhasik
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=28347
Issue Type: DEFECT Exception Reporter: 28347
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

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.