Bug 310254 - "parameter is never read" warning option doesn't work
Summary: "parameter is never read" warning option doesn't work
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 3.6 RC3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-23 05:26 EDT by Martin Hardy CLA
Modified: 2010-06-01 06:14 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Hardy CLA 2010-04-23 05:26:00 EDT
Build Identifier: 20100218-1602

Even when the "ignore in overriding and implementing methods" option is checked for the "parameter is never read" compilation option, a warning is raised for implementing methods that don't use one of their parameters.

Reproducible: Always

Steps to Reproduce:
1. Create an interface with a method that receive any parameter.
2. Create a class that implements first step interface with an empty implementation for the method.
3. Choose "warning" for "Unnecessary code\Parameter is never read" in "Java/compiler/"Errors/warnings" preferences.
4. After applying, a rebuilt is done raising a warning on unused parameter in implementing method created in step 2. That is normal.
5 Now, check the "ignore in overriding and implementing methods" option and apply. After the rebuild, the warning is still here, which is not normal.
Comment 1 Olivier Thomann CLA 2010-04-23 10:34:09 EDT
It works for me using I20100414-1200.
Please provide a test case and make sure you are using a newer build.
I cannot retrieve the build 20100218-1602 anymore.
Thanks.
Comment 2 Martin Hardy CLA 2010-04-30 08:09:06 EDT
Thanks for answer.
I'm currently out of work for health reasons until may 10th.
I'll check that then.
Comment 3 Olivier Thomann CLA 2010-05-19 12:06:10 EDT
Any update ?
Comment 4 Martin Hardy CLA 2010-05-20 09:01:01 EDT
I tried to update my eclipse but build id didn't change in "About" window.
I'm using Eclipse for RCP/plug-in Developers.

In "installed software" tab of "installation details, its version is "Eclipse for RCP/Plug-in Developers	1.2.2.20100216-1730	epp.package.rcp". A click on the "Update" button for this line answers "nothing to update".

Note : I run Eclipse using java 1.6 but compiles using java 1.5 compliance level.
Comment 5 Olivier Thomann CLA 2010-05-20 10:33:44 EDT
What version of JDT/Core are you using ?
You can get it from the Help menu:
About Eclipse SDK>Installation Details>Plugins
Comment 6 Martin Hardy CLA 2010-05-20 10:48:14 EDT
Version for plugin "org.eclipse.jdt.core" is "3.5.2.v_981_R35x
Comment 7 Olivier Thomann CLA 2010-05-25 12:52:16 EDT
Closing as WORKSFORME since I cannot reproduce anymore.
Comment 8 Frederic Fusier CLA 2010-06-01 06:13:44 EDT
Status for WORKFORME bugs should be RESOLVED first...
Comment 9 Frederic Fusier CLA 2010-06-01 06:14:03 EDT
Verified for 3.6RC3 using I20100527-1700. I also verified that it works with 3.5.2...