Bug 62292 - [1.5] Missing receiver in parameterized message send
Summary: [1.5] Missing receiver in parameterized message send
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-14 11:43 EDT by Philipe Mulet CLA
Modified: 2005-01-11 11:02 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 Philipe Mulet CLA 2004-05-14 11:43:43 EDT
Cheetah04

When parsing the following program, the receiver of parameterized message send 
is incorrectly considered as being an implicit one, where it should be name 
ref "X".
      X.<String,X>foo("SUCCESS", null)

Testcase:

public class X {

	static <T, U> T foo(T t, U u) {
		return t;
	}
	public static void main(String[] args) {
		System.out.println(X.<String,X>foo("SUCCESS", null));
	}
}
Comment 1 Philipe Mulet CLA 2004-05-14 12:23:29 EDT
Added regression test: GenericTypeTest#test184.
Comment 2 Olivier Thomann CLA 2004-05-14 15:13:03 EDT
I am investigating.
Comment 3 Olivier Thomann CLA 2004-05-14 15:30:02 EDT
This is fixed and released in HEAD.
Regression test is reactivated.