Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350156 - Package name in import not lowercased, causing compile error
Summary: Package name in import not lowercased, causing compile error
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Matt Heitz CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-23 10:55 EDT by Justin Spadea CLA
Modified: 2017-02-23 14:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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