Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332157

Summary: API Use Scan builder places markers incorrectly for inner types
Product: [Eclipse Project] PDE Reporter: Curtis Windatt <curtis.windatt.public>
Component: API ToolsAssignee: PDE API Tools Inbox <pde-apitools-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P4 CC: ankur_sharma, curtis.windatt.public, Michael_Rennie
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Bug Depends on: 331996    
Bug Blocks:    
Attachments:
Description Flags
WIP none

Description Curtis Windatt CLA 2010-12-08 12:29:28 EST
+++ This bug was initially created as a clone of Bug #331996 +++

The API Use Scan builder doesn't handle correct marker placement when dealing with inner types and nested inner types.
Comment 1 Curtis Windatt CLA 2010-12-08 13:57:10 EST
Created attachment 184806 [details]
WIP

Combination of Mike's patch, a couple tweaks and a new test.  Still needs some work.
Comment 2 Michael Rennie CLA 2011-04-18 12:04:02 EDT
If I am recalling correctly, the problem is for:

1. inner types
2. nested inner types
3. anonymous types
4. local types
Comment 3 Michael Rennie CLA 2011-04-18 12:09:36 EDT
We have all of the code to correctly place problem markers in our problem detector framework, see AbstractProblemDetector#getSourceRange(..) and subclasses for examples.
Comment 4 Curtis Windatt CLA 2011-04-18 16:09:29 EDT
Not a high priority as the marker does get created (just not on the correct line).  We will look at this in the RC builds if there is time.
Comment 5 Eclipse Genie CLA 2019-05-02 08:39:24 EDT
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.

If you have further information on the current state of the bug, please add it. 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.