| 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: | UI | Assignee: | 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: |
|
||||||
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 :-) (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. > Deepak, please check that your 3.x and 4.x build have the exact same version of
> the JDT bundles.
Ping!
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.
Works for me using 4.2-I20120214-2200. |
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.