Bug 255040

Summary: JavaConventions.validatePackageName() method does not seem to work properly
Product: [Eclipse Project] JDT Reporter: Georgi Dimitrov <georgi.d.dimitrov>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann, thebravoman
Version: 3.5   
Target Milestone: 3.5 M4   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
test none

Description Georgi Dimitrov CLA 2008-11-12 09:12:44 EST
Created attachment 117662 [details]
test

Build ID: M20080911-1700

Steps To Reproduce:
1.Call the JavaConventions.validatePackageName() method with (for example) this package -> "com. sap", (or "com  . sap   .   xxx")
2.The method indicates that the package name is valid.




More information:
I have attached a test.
Comment 1 Olivier Thomann CLA 2008-11-12 09:31:20 EST
"com.  sap" is a valid package name and "co m.sap" is an invalid package name.
So I don't see what is wrong in this case.
Comment 2 Olivier Thomann CLA 2008-11-12 09:33:06 EST
I updated org.eclipse.jdt.core.tests.model.JavaConventionTests#testValidPackageName with two new cases covering the cases you submitted.
Comment 3 Olivier Thomann CLA 2008-11-12 09:33:24 EST
Closing as INVALID.
Comment 4 Frederic Fusier CLA 2008-12-09 06:24:56 EST
Verified