Bug 68338

Summary: In generation of main methods on class creation wizzard, the parameter args should be final. [code manipulation]
Product: [Eclipse Project] JDT Reporter: Robert (Kraythe) Simmons <robert.simmons>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: minor    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Robert (Kraythe) Simmons CLA 2004-06-23 13:26:52 EDT
Currently the generation wizzard makes the following: 

public final static main(String[] args) {
}

However, this should actually be:

public final static main(final String[] args) {
}

The keyword final firms up the code and blocks unintentional assignment.
Comment 1 Dirk Baeumer CLA 2004-06-24 06:43:11 EDT
Not critical for 3.0.
Comment 2 Robert (Kraythe) Simmons CLA 2004-09-20 15:08:52 EDT
Could we quickly patch this for 3.1? I cant immagine it would take more than 2 
minutes. =)
Comment 3 Markus Keller CLA 2004-09-21 03:44:04 EDT
Maybe you like this style - others don't. Reopening to mark as dup of bug 40078,
since we shouldn't offer an option just for this specific case.
Comment 4 Markus Keller CLA 2004-09-21 03:44:26 EDT

*** This bug has been marked as a duplicate of 40078 ***