Bug 204283

Summary: [compiler] synthetic field for class literal access should not be created for int.class
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jerome_lanneluc, philippe_mulet
Version: 3.4   
Target Milestone: 3.4 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix none

Description Olivier Thomann CLA 2007-09-21 11:33:57 EDT
A synthetic field is created in this case even if it is never used.

public class X {

	public static void main(String[] args) {
			System.out.println(int.class);
	}
}
Comment 1 Olivier Thomann CLA 2007-09-21 11:34:53 EDT
Created attachment 78985 [details]
Proposed fix
Comment 2 Olivier Thomann CLA 2007-09-21 13:04:44 EDT
Released for 3.4M3.
Regression test added in org.eclipse.jdt.core.tests.compiler.regression.Compliance_CLDC#test003
Comment 3 Jerome Lanneluc CLA 2007-10-29 07:58:45 EDT
Verified for 3.4M3 using I20071029-0010