Bug 27251 - Compiler preferences: Unused parameters - ignore main
Summary: Compiler preferences: Unused parameters - ignore main
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.1 RC1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-27 11:36 EST by Channing Walton CLA
Modified: 2003-03-10 12:10 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Channing Walton CLA 2002-11-27 11:36:04 EST
Hi,
I would like to be able to set an 'ignore main method' option for the Compiler
preferences unused parameters problem marker.

Its the only case where one is forced into a situation where a parameters (args)
can be ignored.

Channing
Comment 1 Philipe Mulet CLA 2002-11-28 06:18:05 EST
Nice to have, will keep for later.
Comment 2 Philipe Mulet CLA 2003-02-11 06:43:14 EST
Resurrecting for investigation, as per request for RC1.
Comment 3 Channing Walton CLA 2003-02-11 15:07:55 EST
Is it worth generalising this so that you can ignore designated methods ?
Comment 4 Philipe Mulet CLA 2003-02-12 05:46:02 EST
I see where you are going, but I would keep it simple and reasonable. There are 
a few obvious ones as main(), and we could add more of these down the roads (or 
even introduce a list of methods to avoid, and/or @ignore-unused-parameter tag 
in javadoc etc...).

Actually, I would prefer the C++ approach, where unused parameter names can be 
omitted, so no diagnosis is issued (would make our life so much simpler).
Comment 5 Channing Walton CLA 2003-02-12 14:23:10 EST
Simple is good :-)
Comment 6 Philipe Mulet CLA 2003-02-14 06:59:27 EST
Unused parameter diagnosis will now ignore parameters in an abstract method, a 
main method, an implementation of an abstract method or a method overriding a 
concrete one. 

Fixed
Comment 7 Channing Walton CLA 2003-02-14 15:36:43 EST
Cool - thanks Philippe.
Comment 8 David Audel CLA 2003-03-10 12:10:08 EST
Verified.