Summary: | ast: NPE in SingleVariableDeclaration::resolveBinding | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | 2.0 M4 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Adam Kiezun
2002-03-01 11:40:23 EST
In this case, I guess you expect null to be returned. when creating regression tests for it - please include also this one: abstract class A{ abstract void m(int i); } this one is meybe related (resolveBinding on the SimpleName 'k' inside the qualified name 'j.k'): class A{ int k; static class j{ static int k; } void m(){ int y= 0; j.k= 0; } } stack trace is different: at org.eclipse.jdt.core.dom.DefaultBindingResolver.resolveNameForNameReference (DefaultBindingResolver.java:222) at org.eclipse.jdt.core.dom.DefaultBindingResolver.resolveName (DefaultBindingResolver.java:97) at org.eclipse.jdt.core.dom.Name.resolveBinding(Name.java:75) another test case for your collection :) (resolveBinding on the declaration of 'i') interface A{ void m(int i, int j); } I forgot to connect the name inside a SingleVariableDeclaration. So it was impossible to retrieve the compiler node corresponding to a method parameter. Fixed and released in HEAD. Fixed. |