From b77682745b78145039646a0fac4a440ebea6ff57 Mon Sep 17 00:00:00 2001 From: Andrey Loskutov Date: Tue, 5 Mar 2024 16:25:10 +0100 Subject: [PATCH] HierarchicalASTVisitor update after JDT core API change Fixes test fail `HierarchicalASTVisitor must be updated to reflect a change in the ASTNode hierarchy. No method visit(EitherOrMultiPattern) was found in HierarchicalASTVisitor.` See https://github.com/eclipse-jdt/eclipse.jdt.core/pull/2011 --- .../META-INF/MANIFEST.MF | 20 +++++++++---------- .../corext/dom/HierarchicalASTVisitor.java | 10 ++++++++++ 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/org.eclipse.jdt.core.manipulation/META-INF/MANIFEST.MF b/org.eclipse.jdt.core.manipulation/META-INF/MANIFEST.MF index 56a749bc440..8e27f59da13 100644 --- a/org.eclipse.jdt.core.manipulation/META-INF/MANIFEST.MF +++ b/org.eclipse.jdt.core.manipulation/META-INF/MANIFEST.MF @@ -3,19 +3,19 @@ Automatic-Module-Name: org.eclipse.jdt.core.manipulation Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.jdt.core.manipulation; singleton:=true -Bundle-Version: 1.21.0.qualifier +Bundle-Version: 1.21.100.qualifier Bundle-Vendor: %providerName Bundle-Activator: org.eclipse.jdt.internal.core.manipulation.JavaManipulationPlugin Bundle-Localization: plugin -Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)", - org.eclipse.core.resources;bundle-version="[3.5.0,4.0.0)", - org.eclipse.ltk.core.refactoring;bundle-version="[3.6.0,4.0.0)", - org.eclipse.jdt.core;bundle-version="[3.36.0,4.0.0)", - org.eclipse.core.expressions;bundle-version="[3.4.100,4.0.0)", - org.eclipse.text;bundle-version="[3.12.0,4.0.0)", - org.eclipse.jdt.launching;bundle-version="3.19.400", - org.eclipse.core.filesystem;bundle-version="1.7.200", - org.eclipse.core.filebuffers;bundle-version="3.6.300", +Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.31.0,4.0.0)", + org.eclipse.core.resources;bundle-version="[3.20.0,4.0.0)", + org.eclipse.ltk.core.refactoring;bundle-version="[3.14.0,4.0.0)", + org.eclipse.jdt.core;bundle-version="[3.38.0,4.0.0)", + org.eclipse.core.expressions;bundle-version="[3.9.0,4.0.0)", + org.eclipse.text;bundle-version="[3.14.0,4.0.0)", + org.eclipse.jdt.launching;bundle-version="3.21.0", + org.eclipse.core.filesystem;bundle-version="1.10.0", + org.eclipse.core.filebuffers;bundle-version="3.8.0", org.eclipse.search.core;bundle-version="3.16.0" Bundle-ActivationPolicy: lazy Export-Package: org.eclipse.jdt.core.manipulation, diff --git a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/dom/HierarchicalASTVisitor.java b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/dom/HierarchicalASTVisitor.java index ee3e3d68487..aded3f1d26d 100644 --- a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/dom/HierarchicalASTVisitor.java +++ b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/dom/HierarchicalASTVisitor.java @@ -667,6 +667,16 @@ public void endVisit(Pattern node) { endVisit((Expression)node); } + @Override + public boolean visit(EitherOrMultiPattern node) { + return visit((Pattern) node); + } + + @Override + public void endVisit(EitherOrMultiPattern node) { + endVisit((Pattern) node); + } + @Override public boolean visit(ParenthesizedExpression node) { return visit((Expression)node);