Bug 270086

Summary: Cannot use word 'abstract' in a package name
Product: [Eclipse Project] JDT Reporter: Sandeep Gupta <sandy.pec>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED INVALID QA Contact:
Severity: major    
Priority: P3 CC: Olivier_Thomann, remy.suen, srikanth_sankaran
Version: 3.4.2   
Target Milestone: 3.5 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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