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 45335 - JavaPlatformManager: Removing more than one selected platform throws AssertionError
Summary: JavaPlatformManager: Removing more than one selected platform throws Assertio...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-06-22 09:45 UTC by David Kaspar
Modified: 2004-08-16 13:30 UTC (History)
1 user (show)

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 David Kaspar 2004-06-22 09:45:40 UTC
How to reproduce:
1) Open Java Platform Manager
2) Add two platform into the manager.
3) Select these two new platforms.
4) Press Remove button.
5) AssertionError exception is shown.

java.lang.AssertionError: Illegal number of
selected nodes
	at
org.netbeans.modules.java.platform.ui.PlatformsCustomizer.removePlatform(PlatformsCustomizer.java:227)
	at
org.netbeans.modules.java.platform.ui.PlatformsCustomizer.access$100(PlatformsCustomizer.java:56)
	at
org.netbeans.modules.java.platform.ui.PlatformsCustomizer$2.actionPerformed(PlatformsCustomizer.java:155)
.................
Comment 1 Jesse Glick 2004-08-10 03:41:38 UTC
Reproducible on Linux. However removing them individually works fine.
Comment 2 Tomas Zezula 2004-08-16 13:29:09 UTC
Only single selection should be enabled.
Checking in
src/org/netbeans/modules/java/platform/ui/PlatformsCustomizer.java;
/cvs/java/platform/src/org/netbeans/modules/java/platform/ui/PlatformsCustomizer.java,v
 <--  PlatformsCustomizer.java
new revision: 1.14; previous revision: 1.13
done