]> source.dussan.org Git - aspectj.git/commitdiff
Adjust AjASTConverter to JDT Core StringLiteralConcatenation changes
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 12 Feb 2024 06:19:13 +0000 (13:19 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 12 Feb 2024 06:19:13 +0000 (13:19 +0700)
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
org.aspectj.ajdt.core/src/main/java/org/aspectj/org/eclipse/jdt/core/dom/AjASTConverter.java

index 64953418a97a9873dd002e69851736abe2ab5adf..9fe28b7d410c2ef61d137fa4f196e679da6a385d 100644 (file)
@@ -2040,10 +2040,11 @@ public class AjASTConverter extends ASTConverter {
                expression.computeConstant();
                final InfixExpression infixExpression = new InfixExpression(this.ast);
                infixExpression.setOperator(InfixExpression.Operator.PLUS);
-               org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression[] stringLiterals = expression.literals;
+               org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression[] stringLiterals = expression.getLiterals();
+               int stringLiteralsSize = stringLiterals.length;
                infixExpression.setLeftOperand(super.convert(stringLiterals[0]));
                infixExpression.setRightOperand(super.convert(stringLiterals[1]));
-               for (int i = 2; i < expression.counter; i++) {
+               for (int i = 2; i < stringLiteralsSize; i++) {
                        infixExpression.extendedOperands().add(super.convert(stringLiterals[i]));
                }
                if (this.resolveBindings) {