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 99714 - []{} symbols should also be processed as incorrect in diagram names
Summary: []{} symbols should also be processed as incorrect in diagram names
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-02 17:38 UTC by Andrew Korostelev
Modified: 2007-05-25 10:54 UTC (History)
0 users

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 Andrew Korostelev 2007-04-02 17:38:26 UTC
Is it expected, that e.g. '(' and ')' are incorrect symbols in diagram name, 
but the following four: '[ ] { }' are correct?

It seems that they should also be processed during diagram renaming or in 'Save
As' action.

see also issue 99076
Comment 1 Yang Su 2007-04-17 23:39:01 UTC
I see no reason why those bracket characters should not be allowed in diagram
name as they cause no troubles.

Made further changes to validate name with the rule that the trimmed diagram
name constains char that is 

Character.isLetterOrDigit(c))  or
            
(c == '_' || c == '(' || c == ')' || c == '{' || c == '}' || c == '[' || c ==
']' || c == ' ')
Comment 2 Andrew Korostelev 2007-05-25 10:54:31 UTC
verified in netbeans-6.0-nightly-200705250000-full