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 271767 - 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: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-07 15:26 UTC by alied
Modified: 2017-11-07 15:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 230818


Attachments
stacktrace (9.48 KB, text/plain)
2017-11-07 15:26 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2017-11-07 15:26:10 UTC
Build: NetBeans IDE Dev (Build 201711070002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.152-b16, Java(TM) SE Runtime Environment, 1.8.0_152-b16
OS: Linux

User Comments:
alied: Executed Refactor/extract super class.




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:222)
   at org.netbeans.api.java.source.CompilationInfo.getCompilationUnit(CompilationInfo.java:186)
   at org.netbeans.api.java.source.ElementHandle.resolve(ElementHandle.java:141)
   at org.netbeans.modules.refactoring.java.plugins.ExtractSuperclassRefactoringPlugin.fastCheckParameters(ExtractSuperclassRefactoringPlugin.java:173)
   at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.run(JavaRefactoringPlugin.java:424)
   at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.run(JavaRefactoringPlugin.java:394)
Comment 1 alied 2017-11-07 15:26:13 UTC
Created attachment 165413 [details]
stacktrace