Bug 158548 - [1.5][compiler] Compiler should be more resilient with unresolved parameterized type references
Summary: [1.5][compiler] Compiler should be more resilient with unresolved parameteriz...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-25 09:29 EDT by David Audel CLA
Modified: 2006-10-30 09:01 EST (History)
0 users

See Also:


Attachments
Proposed patch (12.25 KB, patch)
2006-09-26 12:22 EDT, Philipe Mulet CLA
no flags Details | Diff
Additionnal patch (2.35 KB, patch)
2006-09-26 13:01 EDT, Philipe Mulet CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2006-09-25 09:29:28 EDT
The compiler doesn't report an error for an unresolved type argument if the parameterized type is unresolved.

e.g.
package p;
public class X {
  List<Zork> l;
}

There is only one error message:
  'List cannot be resolved to a type'

It would be interesting to have another error message to signal that 'Zork' is unresolved.
Comment 1 Philipe Mulet CLA 2006-09-26 10:50:01 EDT
Qualified param type refs are also missing support.
e.g.

public class X {
  Map<Zork,Zork>.Entry<List<Zork>,List<Zork>>	entry;
}
Comment 2 Philipe Mulet CLA 2006-09-26 12:22:10 EDT
Added support for being resilient for both single and qualified param references.
Note that it will never go beyond the next set of arguments for qualified refs.

e.g. Zork2 and Zork3 are not going to be complained until Map got resolved properly; but Zork will be reported as missing now.

Map<Zork,Zork>.Entry<List<Zork2>,List<Zork3>>
Comment 3 Philipe Mulet CLA 2006-09-26 12:22:52 EDT
Created attachment 50921 [details]
Proposed patch
Comment 4 Philipe Mulet CLA 2006-09-26 12:23:46 EDT
Released for 3.3M3
Comment 5 Philipe Mulet CLA 2006-09-26 13:01:43 EDT
Created attachment 50924 [details]
Additionnal patch

Incremental improvement to remove limitation for qualified refs where only next arguments were resolved. Now they will all be attempted to be resolved.
Comment 6 David Audel CLA 2006-10-30 09:01:58 EST
Verified for 3.3 M3 using build I20061030-0010