Bug 73021 - [1.5] Inconsistent classfile when using TimeUnit
Summary: [1.5] Inconsistent classfile when using TimeUnit
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-31 20:07 EDT by benoit hudzia CLA
Modified: 2004-09-22 09:38 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description benoit hudzia CLA 2004-08-31 20:07:27 EDT
Inconsistent classfile encountered: The undefined type parameter E is referenced
from within Enum ( the error is at line 1 ) 

code : 


import java.util.concurrent.TimeUnit;
public class Test {

	public static void main(String[] args) {
		
		System.out.println("0s = " 
                + TimeUnit.MILLISECONDS.convert(0L, TimeUnit.SECONDS) + "ms");
	}
	

}


I use jdk 1.5 beta 2 , i have setup the compliance level of the compiler to 1.5
( if i don't i connot use Vector<???> , but i don t get the bug ...) default
compliance setting ( 1.5 / 1.5 / error) 


is there a problem in my code or its with cheeta ?? 


simplier code : 


import java.util.concurrent.TimeUnit;
public class Test {

	public static void main(String[] args) {
		
		
                 TimeUnit.MILLISECONDS.convert(0L, TimeUnit.SECONDS);
	}
	
	
	
}

same error
Comment 1 Philipe Mulet CLA 2004-09-22 09:38:11 EDT
Cannot reproduce any longer in latest. These inconsistencies were resolved a 
while ago (you have to use a recent 3.1 integration build).