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

Summary: Ctrl+Enter invoked for link selected on diagram throws ClassCastException and creates grey square
Product: uml Reporter: Andrew Korostelev <akorostelev>
Component: General DiagramAssignee: Thuy.d Nguyen <thuydn>
Status: VERIFIED FIXED    
Severity: blocker Keywords: A11Y
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: java.lang.ClassCastException
grey square screenshot

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