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 87285 - Right-click on diagram throws ClassCastException
Summary: Right-click on diagram throws ClassCastException
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@uml
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-10-17 10:56 UTC by Alexandr Scherbatiy
Modified: 2007-10-19 21:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ClassCastException in IDE log file (18.04 KB, text/html)
2006-10-17 10:57 UTC, Alexandr Scherbatiy
Details
ClassCastException in IDE log file (Plain text format) (18.04 KB, text/plain)
2006-10-17 11:02 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2006-10-17 10:56:14 UTC
Right-click on empty space on diagram.
The ClassCastException pops up.

Steps to reproduce:
- Create a Java-Platform model UMl project
- Create a Class diagram
- Right-click on the diagram

 The ClassCastException pops up:
 ClassCastException: uml.ui.controls.drawingarea.UIInteractionDiagram 
    cannot be cast to uml.core.metamodel.core.foundation.NamedElement

 See attached IDE log file
Comment 1 Alexandr Scherbatiy 2006-10-17 10:57:44 UTC
Created attachment 35278 [details]
ClassCastException in IDE log file
Comment 2 Alexandr Scherbatiy 2006-10-17 11:02:17 UTC
Created attachment 35279 [details]
ClassCastException in IDE log file (Plain text format)
Comment 3 Craig Conover 2006-10-17 19:22:05 UTC
I noticed this prior to this issue being filed and fixed it, but the build you
used was probably just prior to my second checkin.

The elements on the diagram come in as differnt type. Using a more generic type
in the shared code path. Exception is gone.
Comment 4 Alexandr Scherbatiy 2006-10-18 12:38:59 UTC
verified