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 255368 - ClassCastException: java.io.File cannot be cast to org.netbeans.modules.cnd.utils.FSPath
Summary: ClassCastException: java.io.File cannot be cast to org.netbeans.modules.cnd.u...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-17 13:17 UTC by Exceptions Reporter
Modified: 2015-12-21 11:11 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219992


Attachments
stacktrace (5.82 KB, text/plain)
2015-09-17 13:17 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-09-17 13:17:48 UTC
This bug was originally marked as duplicate of bug 247309, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 8.1

User Comments:
GUEST: I was activating PHP when the error got thrown (Java cast exception).

GUEST: Exception thrown when trying to create a C/C++ aplication.




Stacktrace: 
java.lang.ClassCastException: java.io.File cannot be cast to org.netbeans.modules.cnd.utils.FSPath
   at org.netbeans.modules.cnd.makeproject.ui.wizards.PanelProjectLocationVisual.read(PanelProjectLocationVisual.java:786)
   at org.netbeans.modules.cnd.makeproject.ui.wizards.PanelConfigureProjectVisual.read(PanelConfigureProjectVisual.java:81)
   at org.netbeans.modules.cnd.makeproject.ui.wizards.PanelConfigureProject.readSettings(PanelConfigureProject.java:165)
   at org.netbeans.modules.cnd.makeproject.ui.wizards.PanelConfigureProject.readSettings(PanelConfigureProject.java:60)
   at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:867)
   at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:822)
Comment 1 Exceptions Reporter 2015-09-17 13:17:49 UTC
Created attachment 156248 [details]
stacktrace
Comment 2 Alexander Simon 2015-09-17 15:51:43 UTC
Steps to reproduce:
- invoke new project wizard
- select Java -> Java Application, Next, Back
- select C/C++ -> C/C++ Application, Next

See ClassCastException because property "projdir" already defined in new java project step and has wrong object type from C/C++ wizard point of view

IMXO template wizard should isolate different wizards.

Reassign to evaluation.
Comment 3 Exceptions Reporter 2015-12-21 11:11:04 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=219992