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 148966 - Fix Imports throws Exception: IndentImpl.reformat
Summary: Fix Imports throws Exception: IndentImpl.reformat
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-02 14:27 UTC by Alexandr Scherbatiy
Modified: 2008-10-03 17:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (39.11 KB, text/plain)
2008-10-02 14:29 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-10-02 14:27:10 UTC
JavaFX_trunk_NB_Plugin_NB65_cont: #286 	02-Oct-2008 05:19:08

Product Version         = NetBeans IDE Dev (Build 200809151401)
Operating System        = Windows XP version 5.1 running on x86
Java; VM; Vendor        = 1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b03; Sun Microsystems Inc.

Steps to reproduce:

- Create a JavaFX Script file:
-----------------------------------
Stage{
}
-----------------------------------

- Press <Ctrl+Shift+I>
 The exception pops up:

java.lang.Exception
	at org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:277)
	at org.netbeans.modules.editor.indent.api.Reformat.reformat(Reformat.java:151)
	at org.netbeans.modules.javafx.editor.imports.ImportsModel.publish(ImportsModel.java:183)
	at org.netbeans.modules.javafx.editor.imports.JavaFXImports$1$1.run(JavaFXImports.java:116)
	at org.netbeans.modules.javafx.editor.imports.JavaFXImports$1$1.run(JavaFXImports.java:98)
	at org.netbeans.api.javafx.source.JavaFXSource.runUserActionTask(JavaFXSource.java:415)
	at org.netbeans.modules.javafx.editor.imports.JavaFXImports$1.run(JavaFXImports.java:97)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 Alexandr Scherbatiy 2008-10-02 14:29:21 UTC
Created attachment 71051 [details]
IDE log file
Comment 2 Rastislav Komara 2008-10-03 09:30:25 UTC
Fixed. Added explicit locking of reformat part.
Comment 3 Lark Fitzgerald 2008-10-03 17:39:23 UTC
Tested using FX Cont trunk build 298 with SDK:
Product: javafx-1.0dev Platform: windows-i586 Build-Number: 555 Build-ID: 2008-10-03_03-06-44 on NB6.5: 
Product Version: NetBeans IDE Dev (Build 20080930121929)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)