aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2023-06-26 08:11:38 +0200
committerAlexander Kriegisch <Alexander@Kriegisch.name>2023-06-26 13:48:27 +0700
commitdb76c175037c10ce21fc8f7fe681162e31082445 (patch)
treec722587c4fb6bc229c28e744dea918dc6f003e3d /tests/src
parent00998fd4b23ad0d3e0cd292127297e0fb249c36f (diff)
downloadaspectj-db76c175037c10ce21fc8f7fe681162e31082445.tar.gz
aspectj-db76c175037c10ce21fc8f7fe681162e31082445.zip
Add method ArrayReferenceType.equals to fix failing tests
This also fixes a bug. Previously, ResolvedType.equals was used for equality check, and in there is a '==' comparison, which does not work for two different ArrayReferenceType instances, even if the component type is the same. Relates to #246. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/test/resources/org/aspectj/systemtest/ajc1920/ajc1920.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc1920/ajc1920.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc1920/ajc1920.xml
index 2026df491..9f072c86d 100644
--- a/tests/src/test/resources/org/aspectj/systemtest/ajc1920/ajc1920.xml
+++ b/tests/src/test/resources/org/aspectj/systemtest/ajc1920/ajc1920.xml
@@ -181,8 +181,10 @@
<compile files="First.java Second.java App.java ITDAspect.aj" options="-8"/>
<run class="App">
<stdout>
- <line text="[@First(), @Second()] public void App.foo(java.lang.Object)"/>
+ <line text="[@Second()] public int App.foo(int[])"/>
<line text="[@First()] public void App.foo(java.lang.String)"/>
+ <line text="[] public void App.foo(java.lang.String[])"/>
+ <line text="[@First(), @Second()] public void App.foo(java.lang.Object)"/>
<line text="[@Second()] public int App.foo(int)"/>
</stdout>
</run>