Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2018-07-19 04:51:20 +0000
committerSarika Sinha2018-08-20 03:13:24 +0000
commit31b44b272d0a1f577d066094b0e50b02df9224c7 (patch)
tree231a65eb11b534111db16195e37cc05359f56ba3
parent5ae42c66c6fa2b0ce2cdc20eb952ca99d84776c6 (diff)
downloadeclipse.jdt.core-31b44b272d0a1f577d066094b0e50b02df9224c7.tar.gz
eclipse.jdt.core-31b44b272d0a1f577d066094b0e50b02df9224c7.tar.xz
eclipse.jdt.core-31b44b272d0a1f577d066094b0e50b02df9224c7.zip
Bug 537094 - [10] ArrayIndexOutOfBoundsException while editingI20180820-0800
-rw-r--r--org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionJavadocParser.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionJavadocParser.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionJavadocParser.java
index e200bd812b..69966790ef 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionJavadocParser.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionJavadocParser.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2016 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -292,6 +292,8 @@ public class CompletionJavadocParser extends JavadocParser {
*/
private void initLevelTags() {
int level = ((int)(this.complianceLevel >>> 16)) - ClassFileConstants.MAJOR_VERSION_1_1 + 1;
+ if ( level >= BLOCK_TAGS_LENGTH)
+ return; // To support future JDKs
// Init block tags
this.levelTags[BLOCK_IDX] = new char[BLOCK_ALL_TAGS_LENGTH][];
this.levelTagsLength[BLOCK_IDX] = 0;

Back to the top