Bug 40605 - Unnecessary cast not detected anymore
Summary: Unnecessary cast not detected anymore
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M3   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-22 12:22 EDT by Martin Aeschlimann CLA
Modified: 2003-07-22 12:30 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 Martin Aeschlimann CLA 2003-07-22 12:22:30 EDT
In 3.0M2 this was detected, but not in I20030722 anymore.

	public void foo(String s) {
		int r = ((Object) s).hashCode();
	}
Comment 1 Philipe Mulet CLA 2003-07-22 12:30:11 EDT
This is an expected consequence of fix for bug 40572.

Receiver casts are no longer signalled, since compiler will use the receiver 
type in the constant pool reference, thus in between 1.3/1.4 there would be 
subtle differences in the generated bytecode depending on the presence of the 
cast which users wouldn't likely understand. 

Closing