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 4093 Details for
Bug 34658
Save All failed with unhelpful error message.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch
patchfor34658.txt (text/plain), 1.75 KB, created by
Olivier Thomann
on 2003-03-13 08:49:17 EST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2003-03-13 08:49:17 EST
Size:
1.75 KB
patch
obsolete
>Index: Util.java >=================================================================== >RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/Util.java,v >retrieving revision 1.27 >diff -u -r1.27 Util.java >--- Util.java 11 Mar 2003 15:03:56 -0000 1.27 >+++ Util.java 12 Mar 2003 20:26:26 -0000 >@@ -27,6 +27,7 @@ > > public class Util { > >+ private static final int DEFAULT_READING_SIZE = 8192; > public static String LINE_SEPARATOR = System.getProperty("line.separator"); //$NON-NLS-1$ > public static char[] LINE_SEPARATOR_CHARS = LINE_SEPARATOR.toCharArray(); > public final static char[] SUFFIX_class = ".class".toCharArray(); //$NON-NLS-1$ >@@ -190,7 +191,7 @@ > int contentsLength = 0; > int bytesRead = -1; > do { >- int available = stream.available(); >+ int available = Math.max(stream.available(), DEFAULT_READING_SIZE); > > // resize contents if needed > if (contentsLength + available > contents.length) { >@@ -209,7 +210,7 @@ > // remember length of contents > contentsLength += bytesRead; > } >- } while (bytesRead > 0); >+ } while (bytesRead >= 0); > > // resize contents if necessary > if (contentsLength < contents.length) { >@@ -253,7 +254,7 @@ > int contentsLength = 0; > int charsRead = -1; > do { >- int available = stream.available(); >+ int available = Math.max(stream.available(), DEFAULT_READING_SIZE); > > // resize contents if needed > if (contentsLength + available > contents.length) { >@@ -272,7 +273,7 @@ > // remember length of contents > contentsLength += charsRead; > } >- } while (charsRead > 0); >+ } while (charsRead >= 0); > > // resize contents if necessary > if (contentsLength < contents.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 34658
:
3998
| 4093