aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs198/github_120/D.java
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2022-03-21 10:45:00 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2022-03-21 10:51:35 +0700
commit6dc09db0ca1589f8c53c4dca054e3a852eaaecba (patch)
tree9c480f1ab92b26d141a249513d89942b1a1e6b73 /tests/bugs198/github_120/D.java
parentd3a06a6942b6f69ce9b5b4403d3c1cf1803cf01e (diff)
downloadaspectj-6dc09db0ca1589f8c53c4dca054e3a852eaaecba.tar.gz
aspectj-6dc09db0ca1589f8c53c4dca054e3a852eaaecba.zip
Prepare code, tests and docs for Java 18
- JDT Core dependency in pom.xml - Constants.java - LangUtil.java - AjcTask.java - messages_aspectj.properties - XMLBasedAjcTestCaseForJava17Only.java - XMLBasedAjcTestCaseForJava18*.java - tests/bugs199 - tests/features199 - JavaVersionCompatibility.md - README-199.html - GitHub CI build Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/bugs198/github_120/D.java')
-rw-r--r--tests/bugs198/github_120/D.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/bugs198/github_120/D.java b/tests/bugs198/github_120/D.java
deleted file mode 100644
index 2ecdaa574..000000000
--- a/tests/bugs198/github_120/D.java
+++ /dev/null
@@ -1,33 +0,0 @@
-import org.aspectj.lang.annotation.Aspect;
-import org.aspectj.lang.annotation.Before;
-import org.aspectj.lang.annotation.Pointcut;
-
-/**
- * This test is exploring situations where an if() pointcut is used with a parameter
- * and yet a reference pointcut referring to it is not binding the parameter.
- */
-public class D {
-
-
- public static void main(String []argv) {
- new D().run();
- }
-
- public void run() {
- System.out.println("D.run() executing");
- }
-
- public boolean isTrue() {
- return true;
- }
-
-}
-
-@Aspect class Azpect {
-
- @Pointcut("this(d) && if()") public static boolean method(D d) { return d.isTrue(); }
-
- @Before("method(*) && execution(* D.run(..))") public void beforeAdvice() {
- System.out.println("advice running");
- }
-} \ No newline at end of file