Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 97436 Details for
Bug 228652
[formatter] New line inserted while formatting a region of a compilation unit.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
JUnit test case to reproduce the problem
v00.txt (text/plain), 1.50 KB, created by
Frederic Fusier
on 2008-04-24 07:35:27 EDT
(
hide
)
Description:
JUnit test case to reproduce the problem
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2008-04-24 07:35:27 EDT
Size:
1.50 KB
patch
obsolete
>### 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); >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 228652
: 97436