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 139133 - AssertionError TreeInfo.opPrec when going to Component source
Summary: AssertionError TreeInfo.opPrec when going to Component source
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-07 13:22 UTC by Alexandr Scherbatiy
Modified: 2008-07-15 10:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (64.70 KB, text/plain)
2008-07-07 13:23 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-07-07 13:22:44 UTC
Steps to reproduce:

- Create a JavaFX Script class:
-------------------------------------
import javafx.ext.swing.Component;

public class A {
    public attribute content: Component;
}
-------------------------------------

- Go to 'Component' class source file 
  The error pops up:
java.lang.AssertionError
	at com.sun.tools.javac.tree.TreeInfo.opPrec(TreeInfo.java:751)
	at com.sun.tools.javac.tree.Pretty.visitUnary(Pretty.java:947)
	at com.sun.tools.javac.tree.JCTree$JCUnary.accept(JCTree.java:1500)
	at com.sun.tools.javac.tree.Pretty.printExpr(Pretty.java:157)
	at com.sun.tools.javac.tree.Pretty.printExpr(Pretty.java:172)
	at com.sun.tools.javac.tree.Pretty.visitVarDef(Pretty.java:498)
	at com.sun.tools.javafx.tree.JFXVar.accept(JFXVar.java:75)
	at com.sun.tools.javac.tree.Pretty.printExpr(Pretty.java:157)
	at com.sun.tools.javac.tree.Pretty.printStat(Pretty.java:178)
	at com.sun.tools.javac.tree.Pretty.printStats(Pretty.java:205)
Comment 1 Alexandr Scherbatiy 2008-07-07 13:23:15 UTC
Created attachment 63992 [details]
IDE log file
Comment 2 David Strupl 2008-07-08 10:10:42 UTC
Alexandr, I guess we should run the IDE with assertions disabled as this is the default for the end user for the
released NetBeans. I suggest to just close this issue but leaving it opened to give you a chance to comment first ;-)
Comment 3 David Strupl 2008-07-09 10:20:17 UTC
After discussing here with pnejedly we agreed that it should not be closed but a bug for the compiler should be created.
Comment 4 David Strupl 2008-07-09 12:50:37 UTC
Filed http://openjfx.java.sun.com/jira/browse/JFXC-1517
Comment 5 David Strupl 2008-07-09 13:13:39 UTC
Should be fixed after
844:8e6b78de73bd

I have workarounded the problem in the compiler by not calling the affected methods if the logging is disabled (which it
is for the end user).
Comment 6 Alexandr Scherbatiy 2008-07-15 10:54:05 UTC
verified