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 182785 - Composer hangs after generating an empty function
Summary: Composer hangs after generating an empty function
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2010-03-25 14:08 UTC by Alexandr Scherbatiy
Modified: 2010-04-21 11:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE Thread Dump (18.24 KB, text/plain)
2010-03-25 14:10 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-03-25 14:08:02 UTC
Steps to reproduce:

- Create a JavaFX project 
- In a JavaFX project, create "New > JavaFX Design Desktop File 
-Drag and drop following components from Palette to Design - TextBox, twice Label, Button
- Bind Text property of label to textbox.text
- Bind Text property of label2 to textbox.rawText 
- Generate empty action for button 

The IDE hangs
Comment 1 Alexandr Scherbatiy 2010-03-25 14:10:26 UTC
Created attachment 95814 [details]
IDE Thread Dump
Comment 2 Alexandr Scherbatiy 2010-03-25 14:10:47 UTC
"AWT-EventQueue-2" prio=6 tid=0x07a29000 nid=0xf28 runnable [0x09d1e000]
   java.lang.Thread.State: RUNNABLE
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.accept(JFXReformatTask.java:2700)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitLiteral(JFXReformatTask.java:2475)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitLiteral(JFXReformatTask.java:560)
	at com.sun.tools.javafx.tree.JFXLiteral.accept(JFXLiteral.java:95)
	at com.sun.javafx.api.tree.JavaFXTreePathScanner.scan(JavaFXTreePathScanner.java:63)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.scan(JFXReformatTask.java:714)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitObjectLiteralPart(JFXReformatTask.java:2342)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitObjectLiteralPart(JFXReformatTask.java:560)
	at com.sun.tools.javafx.tree.JFXObjectLiteralPart.accept(JFXObjectLiteralPart.java:88)
	at com.sun.javafx.api.tree.JavaFXTreePathScanner.scan(JavaFXTreePathScanner.java:63)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.scan(JFXReformatTask.java:714)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.wrapLiteralList(JFXReformatTask.java:3699)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitInstantiate(JFXReformatTask.java:1692)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitInstantiate(JFXReformatTask.java:560)
	at com.sun.tools.javafx.tree.JFXInstanciate.accept(JFXInstanciate.java:122)
	at com.sun.javafx.api.tree.JavaFXTreePathScanner.scan(JavaFXTreePathScanner.java:63)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.scan(JFXReformatTask.java:714)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.processExpression(JFXReformatTask.java:1567)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitBlockExpression(JFXReformatTask.java:1504)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.visitBlockExpression(JFXReformatTask.java:560)
	at com.sun.tools.javafx.tree.JFXBlock.accept(JFXBlock.java:99)
	at com.sun.javafx.api.tree.JavaFXTreePathScanner.scan(JavaFXTreePathScanner.java:63)
	at org.netbeans.modules.javafx.editor.format.JFXReformatTask$Pretty.scan(JFXReformatTask.java:714)
Comment 3 Alexandr Scherbatiy 2010-03-25 14:12:20 UTC
netbeans-trunk-2010-03-25_12-59-08-javafx-composer-windows.zip

  Product Version         = NetBeans IDE Dev (Build 201003250201) (#3a55098ae0b2)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.
Comment 4 David Kaspar 2010-03-25 14:48:00 UTC
This is caused by the formatter being stuck when formating code inserted into document using code-templates. This may be related to the newest issue in RequestProcessor... Reassigning to Editor.
Comment 5 Anton Chechel 2010-03-29 15:08:15 UTC
fixed
http://hg.netbeans.org/javafx/rev/9f5039651368
Comment 6 Alexandr Scherbatiy 2010-04-21 11:29:42 UTC
verified in NB 6.9 Beta