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 79093 - It should be possible to create class with name String
Summary: It should be possible to create class with name String
Status: CLOSED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Synchronization (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Yang Su
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-06-26 14:13 UTC by bugbridge
Modified: 2006-08-31 02:29 UTC (History)
1 user (show)

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 bugbridge 2006-06-26 14:13:18 UTC
Steps to reproduce:
uml project by reverse engineering
1. create package (name 'somename') with scoped class diagram
2. add class to the diagram
3. try to name class 'String' on the diagram
error message appears, class isn't named
///
4. add 'String' class in the package in java project
error message apears, and Unnamed class appears in model
5. compile 'String.java' 
it's OK!

Evaluation:
Hi Trey,

- As I get no reply I revert state to Defect
- There was error message in Bow (it should be the issue against Bow)
But current issue is not the same as in Bow: in Bow I was able to create class
'String' and work with 'String' in model and source, but now I can not.
Moreover It's a real defect:
- why I can create 'ArrayList' class but can't create 'String' class
- the message about wrong characters, reserved words, valid identifier can't be
applied in the case 
- If you think it still the same as in Bow, please add bow_dev but not 'RFE'.

Thanks, Sergey

Evaluation (Entry 2):
It still a defect, with may be two separate issues
- inappropriate error(warning) - the same as in Bow
- impossibility to create 'String' class - regression, according to java
language specification the only restrictions for java identifiers: "An
identifier cannot have the same spelling (Unicode character sequence) as a
keyword, boolean literal, or the null literal." "String" isn't keyword/boolean
literal/null literal and consist of valid java letters. It should be possible to
create 'String' in java platform uml. Also look at 4th step result.
Comment 1 Yang Su 2006-07-18 22:34:27 UTC
I agree String should not be treated as built-in Java data type.
Comment 2 Alexandr Scherbatiy 2006-07-21 12:48:58 UTC
Verified in NetBeans 5.5 Beta 2 (Build 200607190830)