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

Bug 511865

Summary: [1.8][inference] consider suppressing nested errors
Product: [Eclipse Project] JDT Reporter: Stephan Herrmann <stephan.herrmann>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Stephan Herrmann CLA 2017-02-07 15:59:27 EST
While working on bug 510111 I saw a situation where GRT_18.testBug470667() would report a spurious error against the outermost m(..).

It would be easy to suppress such redundant reports:
- inside ProblemReporter.invalidMethod()
  - inside case ProblemReasons.InvocationTypeInferenceFailure
    - loop over existing problems of the referenceContext (if any)
    - if a previous error is completely contained in the current range
      -> return from invalidMethod()

This also affects testBug427626() (positively, I think).
Comment 1 Eclipse Genie CLA 2020-01-31 03:27:50 EST
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.