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 178928 - IllegalStateException: Cannot call getCompilationInfo() if current phase < JavaFXSource.Phase.PARSED. You must call toPhase(Phase.PARSED) first.
Summary: IllegalStateException: Cannot call getCompilationInfo() if current phase < Ja...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-21 06:00 UTC by Alexandr Scherbatiy
Modified: 2010-03-19 09:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 163809


Attachments
stacktrace (2.19 KB, text/plain)
2009-12-21 06:00 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-12-21 06:00:03 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP, 5.1, x86

User Comments:
sunflower: - Invoked Code Completion in code below after MDGroup class:
----------------------------------------------------------------------------------------------------

public class InertialObserver extends InertialWorldLine{



    override public function create(): MDShape {
        var normal = velocity.normal();
        var p = normal.mul(length);

        MDGroup

        MDSegment{
            color: color
            point1: MDPoint.createPoint(p)
            point2: MDPoint.createPoint(p.negative())

        }

    }
        

}
----------------------------------------------------------------------------------------------------



Stacktrace: 
java.lang.IllegalStateException: Cannot call getCompilationInfo() if current phase < JavaFXSource.Phase.PARSED. You must call toPhase(Phase.PARSED) first.
   at org.netbeans.modules.javafx.source.parsing.JavaFXParserResultImpl.getCompilationUnit(JavaFXParserResultImpl.java:127)
   at org.netbeans.modules.javafx.source.CompilationInfoImpl.getCompilationUnit(CompilationInfoImpl.java:92)
   at org.netbeans.api.javafx.source.CompilationInfo.getCompilationUnit(CompilationInfo.java:226)
   at org.netbeans.modules.javafx.source.tasklist.FXErrorAnnotator.doProcess(FXErrorAnnotator.java:310)
   at org.netbeans.modules.javafx.source.tasklist.FXErrorAnnotator.access$300(FXErrorAnnotator.java:88)
   at org.netbeans.modules.javafx.source.tasklist.FXErrorAnnotator$2.process(FXErrorAnnotator.java:243)
Comment 1 Alexandr Scherbatiy 2009-12-21 06:00:07 UTC
Created attachment 92816 [details]
stacktrace
Comment 2 J Bachorik 2010-03-15 14:23:38 UTC
This shouldn't happen anymore. FXErrorAnnotator has been removed (http://hg.netbeans.org/javafx/rev/e7859d70a051)
Comment 3 Alexandr Scherbatiy 2010-03-19 09:51:03 UTC
verified in NetBeans-JavaFX-Soma: #190