Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2013-10-27 20:45:36 +0000
committerMarkus Keller2013-10-27 20:45:36 +0000
commitdb9f959a935f205a7a7a5ac245a707865595ee87 (patch)
treef853e4b9e51ecb7d0c1d2db755531c8582a7231e
parent071c3a7154f042f1dac67e366b91c1f1b510f2e9 (diff)
downloadeclipse.jdt.core-db9f959a935f205a7a7a5ac245a707865595ee87.tar.gz
eclipse.jdt.core-db9f959a935f205a7a7a5ac245a707865595ee87.tar.xz
eclipse.jdt.core-db9f959a935f205a7a7a5ac245a707865595ee87.zip
Bug 420458: [1.8][dom ast] JLS8 ASTParser gives up on multi-dimensional array reference in Javadoc
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java
index f1a0e6d298..1a315460e6 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java
@@ -143,7 +143,9 @@ class DocCommentParser extends AbstractCommentParser {
}
}
argument.setType(argType);
- argument.setVarargs(isVarargs);
+ if (this.ast.apiLevel > AST.JLS8) {
+ argument.setVarargs(isVarargs);
+ }
argument.setSourceRange(argStart, argEnd - argStart + 1);
return argument;
}

Back to the top