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 89225 - Ctrl+Enter invoked for link selected on diagram throws ClassCastException and creates grey square
Summary: Ctrl+Enter invoked for link selected on diagram throws ClassCastException and...
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Thuy.d Nguyen
URL:
Keywords: A11Y
Depends on:
Blocks:
 
Reported: 2006-11-13 15:24 UTC by Andrew Korostelev
Modified: 2007-01-22 16:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
java.lang.ClassCastException (2.78 KB, application/octet-stream)
2006-11-13 15:27 UTC, Andrew Korostelev
Details
grey square screenshot (9.24 KB, image/png)
2006-11-13 15:28 UTC, Andrew Korostelev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Korostelev 2006-11-13 15:24:12 UTC
If user invokes Ctrl+Enter on diagram for selected link, 
it throws ClassCastException and creates grey square.

steps:
- create class diagram
- put two class elements
- add link between them
- select link only
- invoke Ctrl+Enter
ClassCastException  is thrown and grey square is placed on diagram.
Comment 1 Andrew Korostelev 2006-11-13 15:26:10 UTC
not sure it is an A11Y issue, but this case is reproducible with shortcut only.
add A11Y
Comment 2 Andrew Korostelev 2006-11-13 15:27:12 UTC
Created attachment 36009 [details]
java.lang.ClassCastException
Comment 3 Andrew Korostelev 2006-11-13 15:28:18 UTC
Created attachment 36010 [details]
grey square screenshot
Comment 4 Thuy.d Nguyen 2006-11-16 19:05:52 UTC
Link creation via keyboard has been implemented (and still under development for
some special links like those in sequence diagram).  This exception no longer
occurs. Closing the bug as Fixed.  
Comment 5 Andrew Korostelev 2006-11-17 14:19:52 UTC
issue is still reproducible.
summary was modified to be more clear:
Problem occurs when user selects link on diagram and invokes Ctrl+Enter.
Not in palette.
Comment 6 Peter Lam 2006-11-21 16:57:54 UTC
workaround: none but exeception doesn't seem like there's harm to functionality
Comment 7 Thuy.d Nguyen 2007-01-13 00:03:34 UTC
This issue is fixed by the fix of another issue (86444).  
Relationship links (e.g. generalization, association, implementation...) are not
supposed to be dragged and dropped from project tree to a diagram or added to a
diagram from the project tree using Ctr-Enter.  A logic has been added to the
code check if the selected element is of type relationship, if so, stop
processing it.
Comment 8 Thuy.d Nguyen 2007-01-16 17:39:05 UTC
Changed status to Fixed.
Comment 9 Andrew Korostelev 2007-01-22 16:04:41 UTC
verified in all-nbms-griffin-070121