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 131848

Summary: AssertionError: JavaSource.runCompileControlTask called under Document write lock.
Product: java Reporter: pribyl <pribyl>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=42938
Issue Type: DEFECT Exception Reporter: 42938
Attachments: stacktrace

Description pribyl 2008-04-02 16:39:26 UTC
Build: NetBeans IDE Dev (Build 200804020122)
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: 
I created new simple macro and tried to execute it using my own shortcut -> Exception was thrown

Note: The macro should add some text. When I was launching it, the cursor was at the end of edited file, behind the last brackett.
Comment 1 pribyl 2008-04-02 16:39:34 UTC
Created attachment 59567 [details]
stacktrace
Comment 2 pribyl 2008-04-02 16:49:34 UTC
To be more specific, it was not a typicall macro at all. It was more like recording some text editing and then launching
it from another position in the file.

macro code:
generate-code "int hwt" delete-previous "at" caret-down caret-up caret-forward caret-forward caret-forward insert-break
"this" delete-previous delete-previous delete-previous delete-previous "sout" caret-backward delete-next delete-next
"hwat" select-word "this(5" caret-forward "`" delete-previous ";" caret-down
Comment 3 Petr Dvorak 2008-08-12 15:57:57 UTC
Product Version: NetBeans IDE Dev (Build 200808120201)
Java: 1.5.0_15; Java HotSpot(TM) Client VM 1.5.0_15-b04
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)

This issue is reproducible in latest builds. Just create a new macro with code from Pavel. Whenever you call the macro,
AE is thrown.
Comment 4 Jan Lahoda 2008-11-18 08:49:45 UTC
I would say "so don't do it". The assertion will not be thrown in the release.
Comment 5 Jan Lahoda 2008-11-18 08:57:07 UTC
should be resolved/later.
Comment 6 Jan Lahoda 2008-11-18 08:57:41 UTC
x
Comment 7 Quality Engineering 2009-11-02 11:03:18 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX