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

Bug 365542

Summary: [quick fix] A particular warning underline doesn't go away after applying quick fix
Product: [Eclipse Project] JDT Reporter: Satyam Kandula <satyam.kandula>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, deepakazad
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Image to show the bug none

Description Satyam Kandula CLA 2011-12-05 01:26:21 EST
Steps to reproduce:
1. Cut and paste the following program in the package explorer 
#########
import java.util.LinkedList;
import java.util.List;
public class Test {
	
    public static List rawList() {return null;}

    public static <T> List<T> typedList() {return null;}

	public static void main(String[] args) {
        List<Object> list = new LinkedList<Object>();
        list = rawList();
    }
}
####
2. On the checked warning for 'list = rawList();' apply the quick fix of adding the suppress warnings. 
3. The warning marker goes away but the underline doesn't go away. 

I am able to reproduce this on 4.2M4 build and not on 3.8M4 build. I am also not able to reproduce this on other warnings.
Comment 1 Deepak Azad CLA 2011-12-05 07:47:24 EST
I can reproduce.

> 3. The warning marker goes away but the underline doesn't go away. 
The underlin does go away on save. Minor but strange issue.

> I am able to reproduce this on 4.2M4 build and not on 3.8M4 build. 
This is really a 4.2 bug but looks like you cannot set the version to 4.2 :-)
Comment 2 Dani Megert CLA 2011-12-05 08:15:58 EST
(In reply to comment #1)
> I can reproduce.
> 
> > 3. The warning marker goes away but the underline doesn't go away. 
> The underlin does go away on save. Minor but strange issue.
> 
> > I am able to reproduce this on 4.2M4 build and not on 3.8M4 build. 
> This is really a 4.2 bug but looks like you cannot set the version to 4.2 :-)

Well, JDT is not split hence a bug is expected to appear in both versions otherwise it would be a Platform UI bug.

Deepak, please check that your 3.x and 4.x build have the exact same version of the JDT bundles.
Comment 3 Dani Megert CLA 2011-12-09 01:55:09 EST
> Deepak, please check that your 3.x and 4.x build have the exact same version of
> the JDT bundles.

Ping!
Comment 4 Satyam Kandula CLA 2011-12-09 04:33:10 EST
Created attachment 208146 [details]
Image to show the bug

I have tried 4.2 with I20111206-1015 and I20111203-0800. I am able to reproduce this always. I am able to get rid of the underline only by making a change to the file. I am able to see this problem for only this particular warning. For other warnings in the file, the underline goes away after a while. 

I couldn't reproduce this on 3.8 either with I20111202-0800 or I20111208-1305.
Comment 5 Dani Megert CLA 2012-02-21 05:42:18 EST
Works for me using 4.2-I20120214-2200.