]> source.dussan.org Git - aspectj.git/commit
Adjust 1.6.1 'testRunningBrokenCode_pr102733*' tests ECJ Java 22
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 22 Mar 2024 17:25:56 +0000 (18:25 +0100)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 22 Mar 2024 17:25:56 +0000 (18:25 +0100)
commit08fc5f7cc74815861f9f1dc8cac7a0c06d6efa68
tree5377d8b90100fdf1330ff8e8fa7da40dc9b77415
parentdee80289aed67ed2dbe15399efdb804bf47340ff
Adjust 1.6.1 'testRunningBrokenCode_pr102733*' tests ECJ Java 22

Initially, these tests made sure that an old AJC bug causing
incompatibility to ECJ when using `-proceedOnError` was fixed and there
were no regressions. See also:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=102733

Now with the Java 22 changes for JEP 463 "Implicitly Declared Classes
and Instance Main Methods (Second Preview)" in JDT Core, source code is
parsed into a significantly different AST structure than before, even
when using compiler targets < 22. See also https://openjdk.org/jeps/463.

One test has been temporarily adjusted to the byte code created by
ECJ/AJC now.

TODO: Revert/adjust after this upstream bug has been
fixed:
https://github.com/eclipse-jdt/eclipse.jdt.core/issues/2205
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
tests/bugs161/pr102733/C3.java [new file with mode: 0644]
tests/bugs161/pr102733/Invoker.java
tests/bugs161/pr102733/Invoker3.java [new file with mode: 0644]
tests/src/test/java/org/aspectj/systemtest/ajc161/Ajc161Tests.java
tests/src/test/resources/org/aspectj/systemtest/ajc161/ajc161.xml