Bug 270086 - Cannot use word 'abstract' in a package name
Summary: Cannot use word 'abstract' in a package name
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.5 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 04:55 EDT by Sandeep Gupta CLA
Modified: 2009-04-28 01:49 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sandeep Gupta CLA 2009-03-26 04:55:21 EDT
Build ID: Version: 3.4.2 Build id: M20090211-1700

Steps To Reproduce:
1. Create a new Java project.
2. Add a package say, org.eclipse.test
3. try adding a class to a sub package say MyTest.java in package org.eclipse.test.abstract
4. The following error message is displayed.

"Package name is not valid. 'abstract' is not a valid Java identifier"


More information:
Eclipse fails to recognize Java classes in a package that has a folder called 'abstract' in its package heirarchy.
Comment 1 Remy Suen CLA 2009-03-26 08:01:24 EDT
(In reply to comment #0)
> Steps To Reproduce:
> 1. Create a new Java project.
> 2. Add a package say, org.eclipse.test
> 3. try adding a class to a sub package say MyTest.java in package
> org.eclipse.test.abstract
> 4. The following error message is displayed.
> 
> "Package name is not valid. 'abstract' is not a valid Java identifier"

I think the error message makes it pretty clear that using 'abstract' as part of a a package name is invalid.
Comment 2 Olivier Thomann CLA 2009-03-26 08:37:29 EDT
"abstract" is a keyword. As is it cannot be used as a java identifier (part of a package name.
Comment 3 Olivier Thomann CLA 2009-03-26 08:37:56 EDT
Closing as INVALID.
Comment 4 Srikanth Sankaran CLA 2009-04-28 01:49:12 EDT
Verified to be INVALID