diff --git a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java index 0363cea156f..d565bcc638d 100644 --- a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java +++ b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java @@ -1410,7 +1410,7 @@ private int countDimensionsAfterPosition(JCArrayTypeTree tree, int pos) { int ret = 0; JCTree elem = tree; while (elem != null && elem.hasTag(TYPEARRAY)) { - if( elem.pos > pos) + if( elem.pos >= pos) ret++; elem = ((JCArrayTypeTree)elem).elemtype; }