From 5a8cdee463d63f9f3eaf0a40dff26a54a814121c Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Mon, 9 Jan 2023 17:56:15 +0100 Subject: Fix WildTypePattern.isArray The method falsely determined that a one-dimensional array was not an array due to a one-off bug. Relates to https://github.com/eclipse/org.aspectj/issues/24. Signed-off-by: Alexander Kriegisch --- .../src/main/java/org/aspectj/weaver/patterns/WildTypePattern.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.aspectj.matcher/src/main/java/org/aspectj/weaver/patterns/WildTypePattern.java b/org.aspectj.matcher/src/main/java/org/aspectj/weaver/patterns/WildTypePattern.java index 32cc0c6c1..9c6a62a5f 100644 --- a/org.aspectj.matcher/src/main/java/org/aspectj/weaver/patterns/WildTypePattern.java +++ b/org.aspectj.matcher/src/main/java/org/aspectj/weaver/patterns/WildTypePattern.java @@ -296,7 +296,7 @@ public class WildTypePattern extends TypePattern { @Override public boolean isArray() { - return dim > 1; + return dim > 0; } /** -- cgit v1.2.3