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 - AssertionError: JavaSource.runCompileControlTask called under Document write lock.
Summary: AssertionError: JavaSource.runCompileControlTask called under Document write ...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-02 16:39 UTC by pribyl
Modified: 2009-11-02 11:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 42938


Attachments
stacktrace (2.62 KB, text/plain)
2008-04-02 16:39 UTC, pribyl
Details

Note You need to log in before you can comment on or make changes to this bug.
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