Summary: | [compiler] Implicit static method invocation should target the receiver type not the declaring class | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> | ||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | kent_johnson | ||||
Version: | 3.1 | ||||||
Target Milestone: | 3.1 M6 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Olivier Thomann
2005-02-11 16:51:12 EST
Created attachment 17877 [details]
Apply on HEAD
This patch fixes the declaring class by using the actualReceiverType if the
receiver is an implicit this.
I am not sure that the test if (receiver.isImplicitThis()) { is required, because the actualReceiverType is fine in both cases. Consider static receiver type from 1.4 compliance on, also had to tweak lookup using static imports to properly set the actualReceiverType. Updated Compliance_1* tests to match new behavior. We now match 1.4.2 (and no longer 1.4.1). Fixed Verified in I20050330-0500 |