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

Bug 499673

Summary: enabling warning/error for 'unused method parameter' didn't work
Product: [Eclipse Project] JDT Reporter: George Forman <gforman44>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description George Forman CLA 2016-08-15 12:00:48 EDT
The Java compiler did not give me a warning about the unused parameter in this test code

	public static double difference(double x, double y) {
		return x - x;
	}

even after I turned on the warning:

Windows / Preferences / Java / Compiler / Errors/Warnings / Unnecessary code / 
"Value of method parameter is not used" := WARNING  (also tried ERROR)
 (Also tried unchecking "ignore in overriding and implementing methods")
 
Note that this was using my *general* profile.  When I repeated the setting using the *project-specific configuration* I then got the warning.  

(Glad I kept digging to get this to work-- it found 3, no 4 bugs in my code instantly.)   

I propose that this should be either INFO or WARNING as the default for new installations.



-- Configuration Details --
Product: Eclipse 4.6.0.20160613-1800 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.jdt 3.12.0.v20160606-1100
Comment 1 Eclipse Genie CLA 2020-03-24 09:36:38 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.