Bug 538198 - [null] false positive for incompatible return type
Summary: [null] false positive for incompatible return type
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2018-08-23 06:07 EDT by Frank Benoit CLA
Modified: 2023-05-05 08:46 EDT (History)
2 users (show)

See Also:


Attachments
error shown here (19.80 KB, image/png)
2018-08-23 06:07 EDT, Frank Benoit CLA
no flags Details
super implementation (5.82 KB, image/png)
2018-08-23 06:07 EDT, Frank Benoit CLA
no flags Details
hierarchy (7.25 KB, image/png)
2018-08-23 06:08 EDT, Frank Benoit CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Benoit CLA 2018-08-23 06:07:17 EDT
Created attachment 275501 [details]
error shown here

This is like 483847, but here with a non-parametrized type, just String.

It shows incorrect return type.
The classes are in different packages.
Both classes are with @NonNullByDefault in the package-info.java
Comment 1 Frank Benoit CLA 2018-08-23 06:07:57 EDT
Created attachment 275502 [details]
super implementation
Comment 2 Frank Benoit CLA 2018-08-23 06:08:20 EDT
Created attachment 275503 [details]
hierarchy
Comment 3 Frank Benoit CLA 2018-08-23 06:09:18 EDT
The method getSimpleTitleName() is only defined in the 2 classes shown, the other classes/interfaces don't have it.
Comment 4 Stephan Herrmann CLA 2019-05-05 05:56:55 EDT
Why move this bug to JDT/UI? The UI doesn't compute errors, it's the compiler in JDT/Core which does.

As usual: we'll need a reproducing example for investigation.
Comment 5 Eclipse Genie CLA 2021-04-25 17:42:11 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.
Comment 6 Eclipse Genie CLA 2023-05-05 08:46:58 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.