| Summary: | classHierarchy.lookupClass("<Extension,Lorg/eclipse/core/expressions/Expression>") leads to null | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Andreas Kaluza <andreas> |
| Component: | Recommenders | Assignee: | Marcel Bruch <marcel.bruch> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Sorry, need a bit more details on this :-) Is this class in the project's classpath? Can you attach/name the sample project? You need a TypeReference which has a <Extension,Lorg/eclipse/core/expressions/Expression> content. Then use the method lookupClass from the IClassHierarchy. This leads to null, which should not.
in the MethodChainElement class in line 70 extend following
} else {
type = classHierarchy.lookupClass(resultingType);
if (type != null) {
type = type.getClassLoader().lookupClass(type.getReference().getInnermostElementType().getName());
}
}
to this:
} else {
if (completion.equals("getExpression")) {
System.out.println(); // --> set break point here!!!!!!!
}
type = classHierarchy.lookupClass(resultingType);
if (type != null) {
type = type.getClassLoader().lookupClass(type.getReference().getInnermostElementType().getName());
}
}
Now, use the CompletionOnThisAndLocal to get to break point. The next step should lookup the class, which leads to null.
this is obsolete for m5. closing. Andreas, please reopen this bug report if the same error occurs again. |
classHierarchy.lookupClass("<Extension,Lorg/eclipse/core/expressions/Expression>") leads to null