diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-12 13:19:13 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-12 13:19:13 +0700 |
commit | adc4df441ca4f2c538fcc458394110bc497e880f (patch) | |
tree | 419786479bf56dad3cd071f74463181abb6e6b1a /org.aspectj.ajdt.core | |
parent | 1287b1b258ca4352e8a866bf11fcad542ee9baad (diff) | |
download | aspectj-adc4df441ca4f2c538fcc458394110bc497e880f.tar.gz aspectj-adc4df441ca4f2c538fcc458394110bc497e880f.zip |
Adjust AjASTConverter to JDT Core StringLiteralConcatenation changes
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/main/java/org/aspectj/org/eclipse/jdt/core/dom/AjASTConverter.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.aspectj.ajdt.core/src/main/java/org/aspectj/org/eclipse/jdt/core/dom/AjASTConverter.java b/org.aspectj.ajdt.core/src/main/java/org/aspectj/org/eclipse/jdt/core/dom/AjASTConverter.java index 64953418a..9fe28b7d4 100644 --- a/org.aspectj.ajdt.core/src/main/java/org/aspectj/org/eclipse/jdt/core/dom/AjASTConverter.java +++ b/org.aspectj.ajdt.core/src/main/java/org/aspectj/org/eclipse/jdt/core/dom/AjASTConverter.java @@ -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) { |