Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311703 - Its possible to create duplicate artifacts in class diagram
Summary: Its possible to create duplicate artifacts in class diagram
Status: RESOLVED FIXED
Alias: None
Product: Tigerstripe
Classification: Technology
Component: Diagrams (show other bugs)
Version: 0.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 07:37 EDT by Duncan Keysell CLA
Modified: 2010-05-13 18:50 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Keysell CLA 2010-05-05 07:37:18 EDT
Follow these steps:

Create class diagram.
Add Entity1 to class diagram
Add Entity2 to class diagram
Rename Entity2 to "Entity1 ". Not the extra whitespace character at the end.

This results in the class diagram containing two artifacts called "Entity1" but in the explorer you still Entity1 and Entity2.
Comment 1 Chris Hartley CLA 2010-05-05 21:00:57 EDT
Rename should not allow whitespace
Comment 2 Eric Dillon CLA 2010-05-13 18:50:39 EDT
There was an extra "trim()" on the string that was triggering this faulty behavior. Now the value is rejected.