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 98890 Details for
Bug 230364
[formatter] Test failure in CleanUpStressTest after changes to comment formatter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
v00.txt (text/plain), 3.12 KB, created by
Frederic Fusier
on 2008-05-06 13:32:39 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2008-05-06 13:32:39 EDT
Size:
3.12 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: formatter/org/eclipse/jdt/internal/formatter/Scribe.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Scribe.java,v >retrieving revision 1.133 >diff -u -r1.133 Scribe.java >--- formatter/org/eclipse/jdt/internal/formatter/Scribe.java 6 May 2008 08:47:45 -0000 1.133 >+++ formatter/org/eclipse/jdt/internal/formatter/Scribe.java 6 May 2008 17:29:17 -0000 >@@ -1860,7 +1860,7 @@ > int firstColumn = this.column; > int indentLevel = this.indentationLevel; > int indentations = this.numberOfIndentations; >- this.indentationLevel = (this.column / this.tabLength) * this.tabLength; >+ this.indentationLevel = getNextIndentationLevel(firstColumn); > this.numberOfIndentations = this.indentationLevel / this.indentationSize; > > // Consume the comment prefix >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/formatter/FormatterCommentsTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterCommentsTests.java,v >retrieving revision 1.12 >diff -u -r1.12 FormatterCommentsTests.java >--- src/org/eclipse/jdt/core/tests/formatter/FormatterCommentsTests.java 6 May 2008 08:47:47 -0000 1.12 >+++ src/org/eclipse/jdt/core/tests/formatter/FormatterCommentsTests.java 6 May 2008 17:29:19 -0000 >@@ -767,6 +767,7 @@ > public void testLineComments06() throws JavaModelException { > formatUnit("comments.line", "X06.java"); > } >+// TODO Pass this test case > public void _testLineComments07() throws JavaModelException { > formatUnit("comments.line", "X07.java"); > } >@@ -779,6 +780,9 @@ > public void testLineComments10() throws JavaModelException { > formatUnit("comments.line", "X10.java"); > } >+public void testLineComments11() throws JavaModelException { >+ formatUnit("comments.line", "X11.java"); >+} > > /* > * Test formatter block lines >Index: workspace/FormatterJavadoc/test/comments/line/X11.java >=================================================================== >RCS file: workspace/FormatterJavadoc/test/comments/line/X11.java >diff -N workspace/FormatterJavadoc/test/comments/line/X11.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/FormatterJavadoc/test/comments/line/X11.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,4 @@ >+package test.comments.line; >+ >+public class X11 { // This comment will go____over the max line length >+} >Index: workspace/FormatterJavadoc/test/comments/line/out/default/X11.java >=================================================================== >RCS file: workspace/FormatterJavadoc/test/comments/line/out/default/X11.java >diff -N workspace/FormatterJavadoc/test/comments/line/out/default/X11.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/FormatterJavadoc/test/comments/line/out/default/X11.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,6 @@ >+package test.comments.line; >+ >+public class X11 { // This comment will >+ // go____over the >+ // max line length >+}
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 230364
:
98789
| 98890