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 185438 Details for
Bug 332843
[formatter] format save action fails with SIOOBE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_332843.txt (text/plain), 1.28 KB, created by
Olivier Thomann
on 2010-12-17 11:29:58 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2010-12-17 11:29:58 EST
Size:
1.28 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.222 >diff -u -r1.222 Scribe.java >--- formatter/org/eclipse/jdt/internal/formatter/Scribe.java 26 Nov 2010 16:42:56 -0000 1.222 >+++ formatter/org/eclipse/jdt/internal/formatter/Scribe.java 17 Dec 2010 16:28:01 -0000 >@@ -452,15 +452,17 @@ > if (edit.length == 0) { > int nrLength = 0; > int rLength = edit.replacement.length(); >- int ch = edit.replacement.charAt(nrLength); >- loop: while (nrLength < rLength) { >- switch (ch) { >- case ' ': >- case '\t': >- nrLength++; >- break; >- default: >- break loop; >+ if (nrLength < rLength) { >+ int ch = edit.replacement.charAt(nrLength); >+ loop: while (nrLength < rLength) { >+ switch (ch) { >+ case ' ': >+ case '\t': >+ nrLength++; >+ break; >+ default: >+ break loop; >+ } > } > } > if (nrLength > 0) {
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 332843
:
185417
|
185436
| 185438 |
186158