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 146706 - JavafxAttr$BreakAttr Exception typing
Summary: JavafxAttr$BreakAttr Exception typing
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P2 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks: 146952
  Show dependency tree
 
Reported: 2008-09-09 21:50 UTC by Lark Fitzgerald
Modified: 2008-10-15 15:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception text (2.03 KB, text/plain)
2008-09-09 21:51 UTC, Lark Fitzgerald
Details
Main.fx (1.51 KB, text/plain)
2008-10-13 09:33 UTC, Alexandr Scherbatiy
Details
IDE log file (38.13 KB, text/plain)
2008-10-13 09:34 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2008-09-09 21:50:39 UTC
Tested using FX Cont trunk build 130 (Sep 9, 2008 4:49:22 PM) on NB6.5:
Product Version: NetBeans IDE Dev (Build 200809081401)
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)

1. open FXTestClassVar1.fx (from automation)
-------------------package classes;

public class FXTestClassVar1 {
    
}
-------------------
2. type the following inside the class:
var a : 

Get exception:

com.sun.tools.javafx.comp.JavafxAttr$BreakAttr
	at com.sun.tools.javafx.comp.JavafxAttr.attribTree(JavafxAttr.java:268)
	at com.sun.tools.javafx.comp.JavafxAttr.attribType(JavafxAttr.java:308)
	at com.sun.tools.javafx.comp.JavafxAttr.finishVar(JavafxAttr.java:839)
	at com.sun.tools.javafx.comp.JavafxMemberEnter$SymbolCompleter.complete(JavafxMemberEnter.java:611)

Full exception attached.
Comment 1 Lark Fitzgerald 2008-09-09 21:51:00 UTC
Created attachment 69457 [details]
exception text
Comment 2 Alexandr Scherbatiy 2008-09-12 10:30:46 UTC
Is it a compiler issue?
Comment 3 David Strupl 2008-09-12 10:42:02 UTC
Yes. I am waiting for Jim Idle from the compiler team ... I will ask you (and Lark) to re-test these after I have an
indication that these might be fixed from him.
Comment 4 Alexandr Scherbatiy 2008-09-12 11:22:09 UTC
What JIRA number is for the compiler issue?
Comment 5 David Strupl 2008-09-12 13:41:16 UTC
There is no special issue for this particular exception - there are several exception in progress as part of JFXC-1117.
I will check and let you know ...
Comment 6 Lark Fitzgerald 2008-09-17 15:10:43 UTC
This is no longer reproducible.  After typing var a: in the editor, the editor does show the red box (top right) but 
it does not throw an exception.  The ! says: Sorry, I was trying to understand a type specification but I got confused 
when I saw '}'

Tested using FX Cont trunk build 178 (Sep 10, 2008 4:20:38 PM) on NB6.5:
Product Version: NetBeans IDE Dev (Build 20080916)
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)
Comment 7 Lark Fitzgerald 2008-09-23 20:11:33 UTC
Tested using FX Cont trunk build 229 with SDK:
Product: javafx-1.0dev Platform: windows-i586 Build-Number: 268 Build-ID: 2008-09-22_08-48-19 on NB6.5:
Product Version: NetBeans IDE Dev (Build 20080922)
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)
Comment 8 Alexandr Scherbatiy 2008-10-13 09:32:38 UTC
JavaFX_NB_Plugin_NB65_daily: #297 2008-10-13_02-01-26.zip
  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.



- Copy the attached Main.fx code to the editor
- Add new line
The exception pops up:


com.sun.tools.javafx.comp.JavafxAttr$BreakAttr
	at com.sun.tools.javafx.comp.JavafxAttr.attribTree(JavafxAttr.java:269)
	at com.sun.tools.javafx.comp.JavafxAttr.attribExpr(JavafxAttr.java:293)
	at com.sun.tools.javafx.comp.JavafxAttr.visitInstanciate(JavafxAttr.java:1464)
	at com.sun.tools.javafx.tree.JFXInstanciate.accept(JFXInstanciate.java:60)
	at com.sun.tools.javafx.comp.JavafxAttr.attribTree(JavafxAttr.java:267)
	at com.sun.tools.javafx.comp.JavafxAttr.attribExpr(JavafxAttr.java:293)
	at com.sun.tools.javafx.comp.JavafxAttr.visitInstanciate(JavafxAttr.java:1464)
	at com.sun.tools.javafx.tree.JFXInstanciate.accept(JFXInstanciate.java:60)
	at com.sun.tools.javafx.comp.JavafxAttr.attribTree(JavafxAttr.java:267)
	at com.sun.tools.javafx.comp.JavafxAttr.attribExpr(JavafxAttr.java:303)
	at com.sun.tools.javafx.comp.JavafxAttr.visitBlockExpression(JavafxAttr.java:1277)
	at com.sun.tools.javafx.tree.JFXBlock.accept(JFXBlock.java:83)
	at com.sun.tools.javafx.comp.JavafxAttr.attribTree(JavafxAttr.java:267)
	at com.sun.tools.javafx.comp.JavafxAttr.attribExpr(JavafxAttr.java:293)
	at com.sun.tools.javafx.comp.JavafxAttr.finishFunctionDefinition(JavafxAttr.java:1713)
	at com.sun.tools.javafx.comp.JavafxMemberEnter$SymbolCompleter.complete(JavafxMemberEnter.java:645)
	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:400)
	at com.sun.tools.javafx.comp.JavafxAttr.visitFunctionDefinition(JavafxAttr.java:1515)
	at com.sun.tools.javafx.tree.JFXFunctionDefinition.accept(JFXFunctionDefinition.java:93)
	at com.sun.tools.javafx.comp.JavafxAttr.attribTree(JavafxAttr.java:267)
	at com.sun.tools.javafx.comp.JavafxAttr.attribDecl(JavafxAttr.java:316)
	at com.sun.tools.javafx.comp.JavafxAttr.attribClassBody(JavafxAttr.java:3504)
	at com.sun.tools.javafx.comp.JavafxAttr.attribClass(JavafxAttr.java:2598)
	at com.sun.tools.javafx.comp.JavafxAttr.attribClass(JavafxAttr.java:2553)
	at com.sun.tools.javafx.main.JavafxCompiler.attribute(JavafxCompiler.java:929)
	at com.sun.tools.javafx.main.JavafxCompiler.attribute(JavafxCompiler.java:905)
	at com.sun.tools.javafx.main.JavafxCompiler.attribute(JavafxCompiler.java:892)
	at com.sun.tools.javafx.api.JavafxcTaskImpl.analyze(JavafxcTaskImpl.java:244)
	at org.netbeans.api.javafx.source.JavaFXSource.moveToPhase(JavaFXSource.java:269)
	at org.netbeans.api.javafx.source.CompilationInfoImpl.toPhase(CompilationInfoImpl.java:132)
	at org.netbeans.modules.javafx.source.scheduler.CompilationJob.run(CompilationJob.java:186)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
[catch] at java.lang.Thread.run(Thread.java:595)
Comment 9 Alexandr Scherbatiy 2008-10-13 09:33:33 UTC
Created attachment 71640 [details]
Main.fx
Comment 10 Alexandr Scherbatiy 2008-10-13 09:34:21 UTC
Created attachment 71641 [details]
IDE log file
Comment 11 David Strupl 2008-10-13 10:08:45 UTC
Entered
http://openjfx.java.sun.com/jira/browse/JFXC-2184
Comment 12 David Strupl 2008-10-14 08:50:07 UTC
Fixed by the compiler team.
Comment 13 Lark Fitzgerald 2008-10-15 15:35:37 UTC
Tested using FX Cont trunk build 370 with SDK:
Product: javafx-1.0dev, Platform: windows-i586, Build-Number: 742, Build-ID: 2008-10-14_19-32-24 on NB6.5: 
Product Version: NetBeans IDE Dev (Build 200810130704)
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)