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 251406 - IllegalStateException: Cannot call getCompilationUnit() if current phase < JavaSource.Phase.PARSED. You must call toPhase(Phase.PARSED) first.
Summary: IllegalStateException: Cannot call getCompilationUnit() if current phase < Ja...
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-24 18:35 UTC by akobberup
Modified: 2015-04-05 04:52 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 215814


Attachments
stacktrace (2.44 KB, text/plain)
2015-03-24 18:35 UTC, akobberup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akobberup 2015-03-24 18:35:04 UTC
Build: NetBeans IDE Dev (Build 1)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.31-b07, Java(TM) SE Runtime Environment, 1.8.0_31-b13
OS: Windows 8

User Comments:
ilia: Steped into a method (GoToSupport::getIdentifierSpan).
Previously called a balloon expression evaluation on this method, but recieved a text (in the balloon) that some classes were not loaded.

akobberup: Step over

gtzabari: Hit F8 to step over. Exception thrown.




Stacktrace: 
java.lang.IllegalStateException: Cannot call getCompilationUnit() if current phase < JavaSource.Phase.PARSED. You must call toPhase(Phase.PARSED) first.
   at org.netbeans.modules.java.source.parsing.CompilationInfoImpl.getCompilationUnit(CompilationInfoImpl.java:219)
   at org.netbeans.api.java.source.CompilationInfo.getCompilationUnit(CompilationInfo.java:184)
   at org.netbeans.modules.debugger.jpda.projects.PreferredCCParser$1.run(PreferredCCParser.java:172)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:153)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:137)
Comment 1 akobberup 2015-03-24 18:35:06 UTC
Created attachment 152825 [details]
stacktrace
Comment 2 Martin Entlicher 2015-04-03 15:18:17 UTC
Fixed by changeset:   286257:bc229d1b64b1
http://hg.netbeans.org/core-main/rev/bc229d1b64b1
Comment 3 Quality Engineering 2015-04-05 04:52:56 UTC
Integrated into 'main-silver', will be available in build *201504050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/bc229d1b64b1
User: mentlicher@netbeans.org
Log: #251406: Move the CompilationController to the required phase.