Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTamás Szabó2018-04-27 09:24:40 +0000
committerTill Brychcy2018-05-15 12:33:31 +0000
commita5c6fe3e502bf78378954eb937d30682a59f99e7 (patch)
tree8a4e20b771c5ca43e70a8cf3178d64b5eda108aa
parent2fc37aebaf1eda268e5b2770bb0b84adb58e6725 (diff)
downloadeclipse.jdt.core-a5c6fe3e502bf78378954eb937d30682a59f99e7.tar.gz
eclipse.jdt.core-a5c6fe3e502bf78378954eb937d30682a59f99e7.tar.xz
eclipse.jdt.core-a5c6fe3e502bf78378954eb937d30682a59f99e7.zip
[532809] Ensures that CodeStream.new_ properly resizes the byte arrayI20180515-1300I20180515-0950
Change-Id: Ie45d1268b7952d27d20852bd668313192d6325b3 Signed-off-by: Tamás Szabó <tamas.szabo@itemis.de>
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
index c86a78117d..e82f9e3757 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
@@ -6059,7 +6059,7 @@ public void new_(TypeReference typeReference, TypeBinding typeBinding) {
this.stackDepth++;
if (this.stackDepth > this.stackMax)
this.stackMax = this.stackDepth;
- if (this.classFileOffset + 2 >= this.bCodeStream.length) {
+ if (this.classFileOffset + 3 >= this.bCodeStream.length) {
resizeByteArray();
}
this.position++;

Back to the top