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.
Summary: | IllegalStateException: Cannot call getCompilationUnit() if current phase < JavaSource.Phase.PARSED. You must call toPhase(Phase.PARSED) first. | ||
---|---|---|---|
Product: | java | Reporter: | Maksim Khramov <mkhramov> |
Component: | Source | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 195894 |
Attachments: | stacktrace |
Description
Maksim Khramov
2016-01-08 19:35:21 UTC
Created attachment 158071 [details]
stacktrace
Looks like a problem of java.source.queriesimpl. The issue from report #806749 is caused by missing NBClassReader (libs.nbjavac) - wrongly installed IDE. Report number #679464 is caused by NoSuchMethodError - wrong update of the IDE. Report number #634803 is caused by the OOM. The #806749 and #679464 are fixed in dev by correct dependency versions. The #634803 is reported as OOM in other issue. However I've change the JavaOperationsImpl to fail as expected with checked exception. jet-main b96488c2722c Integrated into 'main-silver', will be available in build *201606220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b96488c2722c User: Tomas Zezula <tzezula@netbeans.org> Log: #257489:IllegalStateException: Cannot call getCompilationUnit() if current phase < JavaSource.Phase.PARSED. You must call toPhase(Phase.PARSED) first. |