### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.model Index: src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java,v retrieving revision 1.230 diff -u -r1.230 FormatterRegressionTests.java --- src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java 14 Apr 2008 21:52:14 -0000 1.230 +++ src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java 24 Apr 2008 11:34:43 -0000 @@ -10142,4 +10142,25 @@ DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); runTest(codeFormatter, "test714", "A.java", CodeFormatter.K_COMPILATION_UNIT, false);//$NON-NLS-1$ //$NON-NLS-2$ } + + public void test715() { + Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); + DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); + DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); + String input = + "package a;\r\n" + + "\r\n" + + "public class Test {\r\n" + + "\r\n" + + " private int field;\r\n" + + " \r\n" + + " /**\r\n" + + " * fds \r\n" + + " */\r\n" + + " public void foo() {\r\n" + + " }\r\n" + + "}"; + + runTest(input, input, codeFormatter, CodeFormatter.K_COMPILATION_UNIT, 0, false, 62, 19, null); + } }