Bug 533908 - Don't let the user name its classes as same as Java classes
Summary: Don't let the user name its classes as same as Java classes
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.8   Edit
Hardware: PC Windows 10
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-21 14:44 EDT by Yasser Akbbach CLA
Modified: 2018-04-21 15:20 EDT (History)
1 user (show)

See Also:


Attachments
forbid it (102.90 KB, image/png)
2018-04-21 14:44 EDT, Yasser Akbbach CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yasser Akbbach CLA 2018-04-21 14:44:35 EDT
Created attachment 273719 [details]
forbid it

You should consider this enhancement.
Comment 1 Stephan Herrmann CLA 2018-04-21 15:20:09 EDT
Identical simple names (i.e., disregarding the package) is a perfectly valid use case (many simple names used in the JRE are just too good as class names to be forbidden).

Identical qualified names result in errors starting with Java 9 anyway.

Ergo, I don't see how forbidding those names should be an enhancement.
Do you have any convincing reasons that I may have missed?