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 185841 Details for
Bug 317039
[formatter] Code Formatter fails on inner class source indentation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Additional test
v01.txt (text/plain), 2.01 KB, created by
Frederic Fusier
on 2010-12-27 10:12:24 EST
(
hide
)
Description:
Additional test
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2010-12-27 10:12:24 EST
Size:
2.01 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/formatter/FormatterBugsTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterBugsTests.java,v >retrieving revision 1.42 >diff -u -r1.42 FormatterBugsTests.java >--- src/org/eclipse/jdt/core/tests/formatter/FormatterBugsTests.java 27 Dec 2010 14:39:59 -0000 1.42 >+++ src/org/eclipse/jdt/core/tests/formatter/FormatterBugsTests.java 27 Dec 2010 15:11:13 -0000 >@@ -7103,6 +7103,50 @@ > } > > /** >+ * @bug 317039: [formatter] Code Formatter fails on inner class source indentation >+ * @test Ensure formatter is stable when 'Never Join Lines' preference is checked >+ * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=317039" >+ */ >+public void testBug317039_njl() { >+ this.formatterPrefs.join_wrapped_lines = false; >+ String source = >+ "public class X01\n" + >+ " {\n" + >+ "\n" + >+ " public void innerThread()\n" + >+ " {\n" + >+ "\n" + >+ " new Thread(new Runnable()\n" + >+ " {\n" + >+ " @Override\n" + >+ " public void run()\n" + >+ " {\n" + >+ " // TODO Auto-generated method stub\n" + >+ " }\n" + >+ " }).start();\n" + >+ " }\n" + >+ " }\n"; >+ formatSource(source, >+ "public class X01\n" + >+ "{\n" + >+ "\n" + >+ " public void innerThread()\n" + >+ " {\n" + >+ "\n" + >+ " new Thread(new Runnable()\n" + >+ " {\n" + >+ " @Override\n" + >+ " public void run()\n" + >+ " {\n" + >+ " // TODO Auto-generated method stub\n" + >+ " }\n" + >+ " }).start();\n" + >+ " }\n" + >+ "}\n" >+ ); >+} >+ >+/** > * @bug 320754: [formatter] formatter:off/on tags does not work correctly > * @test Ensure disabling/enabling tags work properly around annotations > * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=320754"
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 317039
:
172036
|
185840
| 185841