Summary: | NPE trying to open the following class using the ASTView | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | philippe_mulet | ||||
Version: | 3.3 | Flags: | kent_johnson:
review+
|
||||
Target Milestone: | 3.3 RC1 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Olivier Thomann
2007-05-09 11:53:43 EDT
Philippe, I'll look at it for RC1. We should not blow up in the DOM binding especially if the code has no error. The problem occurs when trying to get the type binding of the expression: foo(l.get(0)) I am investigating. The problem comes from the fact that the ITypeBinding for foo is a capture binding and a capture binding has no binary name. In this case, we tried to extract the binary name as if it was a type variable. Since the JLS 13.1 doesn't specify any binary name for captures, null is an acceptable answer in this case. Created attachment 66520 [details]
Proposed fix
Kent, please review. Released for 3.3RC1. Added regression test org.eclipse.jdt.core.tests.dom.ASTConverter15Test#test0272 Verified for 3.3 RC1 using I20070515-0010 |