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 245843 - ClassCastException: NativeProject.getProject() cannot be cast to org.netbeans.api.project.Project
Summary: ClassCastException: NativeProject.getProject() cannot be cast to org.netbeans...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-21 12:45 UTC by Alexander Simon
Modified: 2014-07-22 02:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2014-07-21 12:45:22 UTC
NativeProject.getProject() returns Lookup.Provider and cannot be casted to org.netbeans.api.project.Project in some IDE extensions.

NativeProject.getProject() should be checked on instance of Project before casting.
Comment 1 Alexander Simon 2014-07-21 12:52:37 UTC
fixed, change sets:
276107:bf48bc24290b
12853:2fe1fbfbf6f1
Comment 2 Quality Engineering 2014-07-22 02:32:24 UTC
Integrated into 'main-silver', will be available in build *201407220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/bf48bc24290b
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #245843 ClassCastException: NativeProject.getProject() cannot be cast to org.netbeans.api.project.Project