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

Bug 166004

Summary: [compiler] Fup of bug 165917, improve problem range for type safety problem
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: philippe_mulet
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Olivier Thomann CLA 2006-11-27 22:47:13 EST
In org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest#test087,
we could report:
"----------\n" + 
"1. WARNING in X.java (at line 11)\r\n" + 
"	Collection<Interface2> doStuff();\r\n" + 
"	^^^^^^^^^^^^^^^^^^^^^^\n" + 
"Type safety: The return type Collection<Interface2> for doStuff() from the type Interface4 needs unchecked conversion to conform to Collection<Interface1> from the type Interface3\n" + 

instead of:

"----------\n" + 
"1. WARNING in X.java (at line 11)\r\n" + 
"	Collection<Interface2> doStuff();\r\n" + 
"	^^^^^^^^^^\n" + 
"Type safety: The return type Collection<Interface2> for doStuff() from the type Interface4 needs unchecked conversion to conform to Collection<Interface1> from the type Interface3\n" + 
"----------\n"
Comment 1 Eclipse Genie CLA 2019-09-27 15:11:14 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.