Summary: | [1.5][assist] proposal ranking by return value should consider auto(un)boxing | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Tom Hofmann <eclipse> | ||||||
Component: | Core | Assignee: | Jay Arthanareeswaran <jarthana> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | david_audel, srikanth_sankaran | ||||||
Version: | 3.1 | ||||||||
Target Milestone: | 3.5 M7 | ||||||||
Hardware: | PC | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Tom Hofmann
2005-02-08 13:03:07 EST
*** Bug 271295 has been marked as a duplicate of this bug. *** Though the defect title mentions only return value, in many other contexts also we should consider auto(un)boxing. For one example see bug #271295 Created attachment 132897 [details]
Proposed patch
This fix does a compatibility check for the left hand and right hand side type and if found compatible, uses R_EXPECTED_TYPE as the relevance value. Test cases are part of the patch.
Comment on attachment 132897 [details]
Proposed patch
Autoboxing is a 1.5 features, so the compatibility check should be done only if compliance is at least 1.5.
Created attachment 133082 [details]
Latest patch
Instead of calling the LookupEnvironment.computeBoxingType method, modified the fix to use Scope.isBoxingCompatibleWith, which already handles the compiler compatibility checks.
Comment on attachment 133082 [details]
Latest patch
This patch is good.
Released for 3.5M7. Verified for 3.5M7 using I20090427-1800. I found a problem in relevance computation while verifying this bug. I entered bug 273991 for this problem. |