Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350156

Summary: Package name in import not lowercased, causing compile error
Product: z_Archived Reporter: Justin Spadea <jspadea>
Component: EDTAssignee: Matt Heitz <mheitz>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mheitz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Justin Spadea CLA 2011-06-23 10:55:16 EDT
Create a new program "Prog1" in package "a.b.C". It doesn't need to contain anything. Generate it to Java.

The output file is in the lowercased package "a.b.c" but the file has a bad import:

import a.b.C.Prog1;

It should be a lowercase 'c'.
Comment 1 Matt Heitz CLA 2011-06-23 13:09:56 EDT
I made the fix in /org.eclipse.edt.gen.java.templates/src/org/eclipse/edt/gen/java/templates/PartTemplate.java.  Package names in imports were not being aliased.
Comment 2 Justin Spadea CLA 2011-07-05 14:56:48 EDT
Verified in latest CVS