Bug 26759 - Cast Compiler Error
Summary: Cast Compiler Error
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-20 08:31 EST by Frank W. Ball CLA
Modified: 2002-12-17 11:00 EST (History)
0 users

See Also:


Attachments

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