| Summary: | [1.7][compiler] type inference with unbounded wildcard in result type | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Christopher Sahnwaldt <jcsahnwaldt> | ||||||
| Component: | Core | Assignee: | Srikanth Sankaran <srikanth_sankaran> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | minor | ||||||||
| Priority: | P3 | CC: | amj87.iitr, deepakazad, gk_brown, jcsahnwaldt, Mike_Wilson, Olivier_Thomann, philippe_mulet, zorzella | ||||||
| Version: | 3.5 | ||||||||
| Target Milestone: | 3.7.1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Christopher Sahnwaldt
Added GenericTypeTest#test1404 Changing version tag to something more believable. See that this code compiles with JDK 7b138. Eclipse will shortly be fixing this issue and the fix will be made available only via a Java7 enabled release. Changed defect title to reflect that. Created attachment 196508 [details] Patch under consideration. This is a cumulative patch and includes also the changes being considered for bug 341795. The code changes inside org.eclipse.jdt.internal.compiler.lookup.ParameterizedGenericMethodBinding.resolveSubstituteConstraints(Scope, TypeVariableBinding[], InferenceContext, boolean) are for the bug 341795. Other changes are for bug 242159 This patch is under test. Passes all JDT/Core tests. I'll play around with it some more before releasing it. Created attachment 196638 [details]
Revised cumulative patch under consideration.
This is a cleaner, better documented patch.
As a part of this cumulative fix, I had to remaster 13 tests from GenericTypeTests suite - I have verified that in every one of these cases, the new behavior matches JDK 7b142 - javac compiler. The fix applies to all compliance levels. Released in BETA_JAVA7 branch only - this is too late for 3.7 stream (HEAD) *** Bug 283353 has been marked as a duplicate of this bug. *** (In reply to comment #6) > Created attachment 196638 [details] > Revised cumulative patch under consideration. > > This is a cleaner, better documented patch. For posterity, this patch was superceded by the fix for bug 347600, which is a better more general fix. Verified with v20110714-1300. *** Bug 351717 has been marked as a duplicate of this bug. *** |