Summary: | [1.5][compiler] 1.5 source code gets internal eclipse null pointer error | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Joe Bienkowski <failurite> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | P3 | CC: | javier |
Version: | 3.1 | ||
Target Milestone: | 3.1.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Joe Bienkowski
2005-07-15 15:12:11 EDT
NPE is likely a dup of bug 101456, which got addressed since 3.1 release. However, on the code sample, I am still seeing a compile error being detected on line: parent = argParent; due to some type mismatch. Simpler testcase for remaining issue: public class X<T, U> { X<? extends U, ?> parent; public X(X<? extends U, ?> parent) { this.parent = parent; } } Unexpected error is: Type mismatch: cannot convert from X<capture-of ? extends U,capture-of ?> to X<? extends U,?> Issue comes from unneeded substitution from wildcard bound (U) during capture mechanism, leading the supertype of 'capture-of ? extends U' to be 'capture-of ?' instead of 'U'. Added GenericTypeTest#test782 & test784. Fixed Verified for 3.2M1 (I20050808-2000) Verified using M20050923-1430 for 3.1.1 |