Bug 204283 - [compiler] synthetic field for class literal access should not be created for int.class
Summary: [compiler] synthetic field for class literal access should not be created for...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-21 11:33 EDT by Olivier Thomann CLA
Modified: 2007-10-29 07:58 EDT (History)
2 users (show)

See Also:


Attachments
Proposed fix (1.04 KB, patch)
2007-09-21 11:34 EDT, Olivier Thomann CLA
no flags Details | Diff

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