aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2023-08-22 07:54:19 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2023-08-22 07:57:02 +0700
commit2af1b06b6a9439109520b249b5e44dfc1375c199 (patch)
treef4fe949ae43f661c744b731d903f5c601d9d6183 /tests/src
parent41849751a83203a89d8cc982951887ee2ffec9c6 (diff)
downloadaspectj-2af1b06b6a9439109520b249b5e44dfc1375c199.tar.gz
aspectj-2af1b06b6a9439109520b249b5e44dfc1375c199.zip
Improve bridge method test, bootstrapping ASM usage
Instead of using a pre-generated JAR, the source code generating the class with reordered methods (bridge method first) is now compiled directly before usage. This is possible, because in the previous commit ASM was put on the Ajc classpath for tests. Relates to #256. 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.xml7
1 files changed, 6 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 db47e073d..89c9b5f41 100644
--- a/tests/src/test/resources/org/aspectj/systemtest/ajc1920/ajc1920.xml
+++ b/tests/src/test/resources/org/aspectj/systemtest/ajc1920/ajc1920.xml
@@ -420,7 +420,12 @@
<!-- https://github.com/spring-projects/spring-framework/issues/27761 -->
<ajc-test dir="bugs1921/gh_spring_27761" vm="8" title="do not match bridge methods">
- <compile files="RepositoryAspect.aj" inpath="JpaRepository_bridge_first.jar" options="-8"/>
+ <!-- (1) Use ASM to generate JpaRepository class with reordered methods -->
+ <compile files="JpaRepositoryDump.java" options="-8"/>
+ <run class="JpaRepositoryDump" options="$sandbox"/>
+ <file deletefile="JpaRepositoryDump.class"/>
+ <!-- (2) Use AJC to compile the remaining classes and run the test -->
+ <compile files="RepositoryAspect.aj" options="-8"/>
<run class="RepositoryAspect">
<stdout>
<line text="execution(List RepositoryImpl.saveAll(Iterable))"/>