| Summary: | [assist] completion for ctor with declared lifting causes CCE | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Objectteams | Reporter: | Stephan Herrmann <stephan.herrmann> | ||||
| Component: | OTDT | Assignee: | Stephan Herrmann <stephan.herrmann> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 0.7 | ||||||
| Target Milestone: | 0.7 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Stephan Herrmann
Created attachment 171930 [details]
fix
The CCE is caused by incomplete conditional:
testing "instanceof SingleTypeReference" and if false assuming it's a
QualifiedTypeReference.
OT/J has two more kinds of TypeReference: LiftingTypeReference and
TypeAnchorReference. A full search for "instanceof SingleTypeReference"
brings three suspecious occurrences:
+ BasicSearchEngine, nested class inside searchAllConstructorDeclarations(..)
-> that's what caused the CCE, fixed by also checking for LiftingTypeReference
+ JavadocArgumentExpression.internalResolveType(..)
-> another missing check for LTR, also fixed in the patch
- TypeParameterLocator#match(TypeReference,MatchingNodeSet)
-> may need to check for TypeAnchorReference
NOT INCLUDED IN THIS PATCH.
Patch released as r515. Verified using build 201007011455. |