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

Bug 362143

Summary: Generated Java code got error in "import" statements when using external type
Product: z_Archived Reporter: Xin Wu <cdlwuxin>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: cdlwuxin, jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
LdapRuiServices in EDT
none
LdapRuiServices RBD (only source files) none

Description Xin Wu CLA 2011-10-26 22:24:03 EDT
Build Identifier: 20111026 nightly build

Generated Java code got error in "import" statements when using external type.

Reproducible: Always

Steps to Reproduce:
1. Download the attached EDT EGL project, import to your workspace
2. Make sure there is no EGL compile error and see the EGL file "common.LDAPExternalTypes.egl". This was modified based on project in RBD.
3. See the file "common.LDAPLib.java" in generatedJava, there are some error in import statements.
4. For example: 
"import java.util.Hashtable<String,String>;"
"import java.lang.String[];"

5. The generated code in RBD got no error, you may see the comparable RBD project attached.
Comment 1 Xin Wu CLA 2011-10-26 22:28:41 EDT
Created attachment 206041 [details]
LdapRuiServices in EDT
Comment 2 Xin Wu CLA 2011-10-26 22:41:21 EDT
Created attachment 206042 [details]
LdapRuiServices RBD (only source files)
Comment 3 Xin Wu CLA 2011-10-26 22:43:12 EDT
For the upload size limitation, I only upload the source files of project in RBD. You may import the project by 
RBD Help => Samples => EGL => Rich UI access to LDAP
Comment 4 Jeff Douglas CLA 2011-10-27 16:37:31 EDT
fixed
Comment 5 Xin Wu CLA 2011-10-30 22:31:46 EDT
Verified in build 20111030