Skip to content

Commit

Permalink
Fix for test0314 - String v[] has off-by-one error
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker committed May 10, 2024
1 parent eeed14d commit 8d18367
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8d18367

Please sign in to comment.