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 106308 Details for
Bug 238538
AIOOBE while formatting code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Workaround
workaround.txt (text/plain), 1.09 KB, created by
Krzysztof Daniel
on 2008-07-02 09:10:49 EDT
(
hide
)
Description:
Workaround
Filename:
MIME Type:
Creator:
Krzysztof Daniel
Created:
2008-07-02 09:10:49 EDT
Size:
1.09 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java,v >retrieving revision 1.179 >diff -u -r1.179 Scanner.java >--- compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java 29 Mar 2006 02:47:34 -0000 1.179 >+++ compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java 2 Jul 2008 12:56:05 -0000 >@@ -425,12 +425,16 @@ > this.withoutUnicodePtr); > else { > int length; >- System.arraycopy( >- this.source, >- this.startPosition, >- result = new char[length = this.currentPosition - this.startPosition], >- 0, >- length); >+ if(this.source.length >= this.currentPosition){ >+ System.arraycopy( >+ this.source, >+ this.startPosition, >+ result = new char[length = this.currentPosition - this.startPosition], >+ 0, >+ length); >+ }else { >+ return new char[0]; >+ } > } > return result; > }
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 238538
:
105867
| 106308