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 181519 - CCE from UIUtil.chooseSuiteComponent
Summary: CCE from UIUtil.chooseSuiteComponent
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-04 05:15 UTC by dlipin
Modified: 2010-03-11 16:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 165973


Attachments
stacktrace (2.50 KB, text/plain)
2010-03-04 05:15 UTC, dlipin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dlipin 2010-03-04 05:15:55 UTC
Build: NetBeans IDE Dev (Build 100304-5b4534810091)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows XP

User Comments:
dlipin: 1. Created "Maven NetBeans Module using OSGi" project (1)
2. Created "NetBeans Platform Application" project (2)
3. Opened Properties dialog for (2) project, "Sources" panel, clicked on "Add.." to add new entry to "Suite Module:"
4. When selected (1) and closed FileChooser, this exception occured




Stacktrace: 
java.lang.ClassCastException
   at java.lang.Class.cast(Class.java:2990)
   at org.openide.util.NbCollections$CheckedSet.contains(NbCollections.java:305)
   at org.netbeans.modules.apisupport.project.ui.UIUtil.chooseSuiteComponent(UIUtil.java:586)
   at org.netbeans.modules.apisupport.project.ui.customizer.SuiteCustomizerSources.addModule(SuiteCustomizerSources.java:201)
   at org.netbeans.modules.apisupport.project.ui.customizer.SuiteCustomizerSources.access$100(SuiteCustomizerSources.java:56)
   at org.netbeans.modules.apisupport.project.ui.customizer.SuiteCustomizerSources$2.actionPerformed(SuiteCustomizerSources.java:164)
Comment 1 dlipin 2010-03-04 05:15:59 UTC
Created attachment 94754 [details]
stacktrace
Comment 2 Milos Kleint 2010-03-04 08:43:58 UTC
hele jesse,
how is the inability of ant suite project to add a maven based module project a maven problem? or is 2. project also maven based?
Comment 3 dlipin 2010-03-05 07:13:29 UTC
> is 2. project also maven based?
No, just a standard NetBeans Platform App (File->New Project->NetBeans Modules->NetBeans Platform Application).
Comment 4 Jesse Glick 2010-03-11 16:24:30 UTC
You cannot add a Maven project as a dep to an Ant project. A proper dialog will now be shown rather than a CCE, but this is a user error. core-main #ae1284a7df61