Bug 5482

Summary: The template for "main" puts "[]" after variable name
Product: [Eclipse Project] JDT Reporter: Jed Anderson <jed.anderson>
Component: UIAssignee: Claude Knaus <Claude_Knaus>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Jed Anderson CLA 2001-11-02 12:07:28 EST
The main template creates the following:

public static void main(String arguments[]) {
	
}

The "[]" after the variable name is considered a C++ construct.  This should be
changed to the following in order to give the tool a more Javaish feel.

public static void main(String[] arguments) {
	
}
or, as main is most oftenly written:

public static void main(String[] args) {
	
}
Comment 1 Erich Gamma CLA 2001-11-05 09:07:55 EST
Correct "String args[]" is legal but not considered as Java best practice.
Comment 2 Claude Knaus CLA 2001-11-05 12:18:09 EST
I noticed this today :)
Comment 3 Claude Knaus CLA 2001-11-06 06:30:01 EST
fixed > 208