diff options
author | Sarika Sinha | 2018-07-19 04:51:20 +0000 |
---|---|---|
committer | Sarika Sinha | 2018-08-20 03:13:24 +0000 |
commit | 31b44b272d0a1f577d066094b0e50b02df9224c7 (patch) | |
tree | 231a65eb11b534111db16195e37cc05359f56ba3 | |
parent | 5ae42c66c6fa2b0ce2cdc20eb952ca99d84776c6 (diff) | |
download | eclipse.jdt.core-31b44b272d0a1f577d066094b0e50b02df9224c7.tar.gz eclipse.jdt.core-31b44b272d0a1f577d066094b0e50b02df9224c7.tar.xz eclipse.jdt.core-31b44b272d0a1f577d066094b0e50b02df9224c7.zip |
Change-Id: I2cb4cef7508af2f2633528238d13b3d57ec518f7
-rw-r--r-- | org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionJavadocParser.java | 4 |
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; |