Bug 26759

Summary: Cast Compiler Error
Product: [Eclipse Project] JDT Reporter: Frank W. Ball <ballf>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Frank W. Ball CLA 2002-11-20 08:31:35 EST
The following code which compiles successfully under Sun's 1.4 JDK gets a
'Cannot cast from String to Object' compile error in nightly 2.1 build N20021119:

package test;

public class CastTest {

	public void test(Object o) {

	}

	public void test(String s) {

		test((Object)s);
	}
}
Comment 1 Philipe Mulet CLA 2002-11-20 09:25:22 EST
Fixed, this was a mistake never officially released. 
Note that by taking nightly builds you are willing to live dangerously.

Thanks for the information anyway.
Comment 2 Philipe Mulet CLA 2002-11-20 09:25:35 EST
Fixed
Comment 3 David Audel CLA 2002-12-17 11:00:50 EST
Verified.