Bug 62737 - Code formatter doesn't work on some files
Summary: Code formatter doesn't work on some files
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.0 RC1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-18 14:38 EDT by Mathijs Vogelzang CLA
Modified: 2004-05-28 15:38 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 Mathijs Vogelzang CLA 2004-05-18 14:38:01 EDT
The code formatter doesn't do anything on some files. There is no error message.
I'm using eclipse 3.0M8. It doesn't matter what code formatting profile I choose.

With some experimenting, the shortest file I could create that doesn't work is this:

import java.util.Vector;

public class EclipseFormatTest
{
	public static void main(String[] args)
	{
		Vector v2 = new Vector();
		{{{String a = ((String) v2.get(0)).trim(), b = (String)
		v2.get(1), c = (String) v2
		.get(2);}}
		}
	}
}
Comment 1 Dani Megert CLA 2004-05-19 03:40:45 EDT
Can reproduce using I200405190010
I verified that the formatter is called but it returns null.
Comment 2 Olivier Thomann CLA 2004-05-19 10:36:38 EDT
I have a fix for this one.
Comment 3 Olivier Thomann CLA 2004-05-19 11:43:25 EDT
Will be fixed for RC1.
Comment 4 Olivier Thomann CLA 2004-05-25 09:59:24 EDT
Fixed and released in HEAD.
Comment 5 Olivier Thomann CLA 2004-05-28 15:38:31 EDT
Verified in 200405281200