| Summary: | NPE in CompletionEngine.findLocalMethods: method.returnType is null | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Friso Vrolijken <friso.vrolijken> |
| Component: | Core | Assignee: | Andreas Sewe <sewe> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sewe |
| Version: | 4.7.1a | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 10 | ||
| Whiteboard: | stalebug | ||
|
Description
Friso Vrolijken
I(In reply to Friso Vrolijken from comment #0) > In my Error Log there are multiple messages like this. I don't know what > caused them I'll investigate. Looking at the relevant code from JDT in Oxygen.1a (FWIW, hasn't change in Photon M4), it looks like method.returnType is null in the following fragment: proposal.setDeclarationPackageName(method.declaringClass.qualifiedPackageName()); proposal.setDeclarationTypeName(method.declaringClass.qualifiedSourceName()); proposal.setParameterPackageNames(parameterPackageNames); proposal.setParameterTypeNames(parameterTypeNames); proposal.setPackageName(method.returnType.qualifiedPackageName()); proposal.setTypeName(method.returnType.qualifiedSourceName()); proposal.setName(method.selector); AFAIK, a non-null (compiler) MethodBinding with a null returnType TypeBinding shouldn't happen, but I may be mistaken. Reassigning to JDT Core for comments. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |