Summary: | NPE in ResolvedMemberValuePair#init() | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||||
Component: | Core | Assignee: | Kent Johnson <kent_johnson> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | Olivier_Thomann | ||||||
Version: | 3.2 | ||||||||
Target Milestone: | 3.2 M5 | ||||||||
Hardware: | PC | ||||||||
OS: | Windows XP | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Markus Keller
2006-01-31 06:02:36 EST
You could specify that this code doesn't compile. I'll investigate. Created attachment 33890 [details]
Proposed patch
Kent, Could you please review the patch? Putting the line after the for fixes this issue. Otherwise an array with null inside is returned as the computedPair. This doesn't seem to have an impact on the errors reported by the compiler. Created attachment 33892 [details]
Regression test
org.eclipse.jdt.core.tests.dom.ASTConverter15Test.test0208 is released, but it is disabled for now. Please reenable once this is fixed. released along with change to only create binding when storeAnnotations is true. Verified for 3.2 M5 using build I20060214-0010 I think the resolution for this problem was wrong. When the member value cannot be resolved, we should not return a binding for it. |