Bug 73021

Summary: [1.5] Inconsistent classfile when using TimeUnit
Product: [Eclipse Project] JDT Reporter: benoit hudzia <benoit.hudzia>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED WORKSFORME QA Contact:
Severity: blocker    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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).