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 207842 Details for
Bug 365387
[compiler][null] bug 186342: Issues to follow up post review and verification.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Fix for an AIOOBE found during stress test
Fix-AIOOBE.patch (text/plain), 900 bytes, created by
Stephan Herrmann
on 2011-12-02 08:56:29 EST
(
hide
)
Description:
Fix for an AIOOBE found during stress test
Filename:
MIME Type:
Creator:
Stephan Herrmann
Created:
2011-12-02 08:56:29 EST
Size:
900 bytes
patch
obsolete
>diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/FlowContext.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/FlowContext.java >index 7df8a71..98caf30 100644 >--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/FlowContext.java >+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/FlowContext.java >@@ -564,9 +564,10 @@ > while (size <= nullCount) size *= 2; > this.expectedTypes = new TypeBinding[size]; > } >- else if (nullCount == this.expectedTypes.length) { >+ else if (nullCount >= this.expectedTypes.length) { >+ int oldLen = this.expectedTypes.length; > System.arraycopy(this.expectedTypes, 0, >- this.expectedTypes = new TypeBinding[nullCount * 2], 0, nullCount); >+ this.expectedTypes = new TypeBinding[nullCount * 2], 0, oldLen); > } > this.expectedTypes[nullCount] = expectedType; > }
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 365387
:
207842
|
207843
|
207876
|
207888
|
207952