Bug 343420 - [quick fix] "Change modifier to 'static final'" incorrectly suggested
Summary: [quick fix] "Change modifier to 'static final'" incorrectly suggested
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.14 M3   Edit
Assignee: Kenneth Styrberg CLA
QA Contact: Roland Grunberg CLA
URL:
Whiteboard: stalebug
Keywords:
: 361771 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-20 10:28 EDT by Szymon Ptaszkiewicz CLA
Modified: 2019-11-20 12:29 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Szymon Ptaszkiewicz CLA 2011-04-20 10:28:33 EDT
Build id: I20110419-1004

Using the following test case 3 quick fixes are available. One of them is "Change modifier to 'static final'" which is not correct and applying this quick fix does not change anything.

----------%<----------
public class A {
	public class B {
		static final int X = 1;
		static final Integer Y = new Integer(2);
	}
}
----------%<----------
Comment 1 Deepak Azad CLA 2011-04-21 02:56:45 EDT
The error message is incorrect, filed bug 343480.
Comment 2 Srikanth Sankaran CLA 2011-10-24 03:51:33 EDT
*** Bug 361771 has been marked as a duplicate of this bug. ***
Comment 3 Eclipse Genie CLA 2019-10-03 04:28:51 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 4 Eclipse Genie CLA 2019-10-06 15:09:31 EDT
New Gerrit change created: https://git.eclipse.org/r/150664
Comment 6 Roland Grunberg CLA 2019-11-20 12:29:33 EST
Verified for 4.14 M3 using I20191120-0840 build.