From 173855359653486178e7e0a7d7b8918615e6deee Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Wed, 17 Mar 2021 13:51:59 +0700 Subject: Restructure Java 14 / AJ 1.9.6 tests - Java 14 feature sample classes moved from 'bugs' to 'features' - One test case using a Java 14 preview feature was moved to the Java 14-only tests Signed-off-by: Alexander Kriegisch --- tests/bugs196/java14/Jep305.java | 22 ---------------------- tests/bugs196/java14/Person.java | 2 -- tests/bugs196/java14/TraceRecordComponents.aj | 5 ----- tests/bugs196/java14/UsingPersonRecord.java | 7 ------- tests/bugs196/java14/p.java | 2 -- 5 files changed, 38 deletions(-) delete mode 100644 tests/bugs196/java14/Jep305.java delete mode 100644 tests/bugs196/java14/Person.java delete mode 100644 tests/bugs196/java14/TraceRecordComponents.aj delete mode 100644 tests/bugs196/java14/UsingPersonRecord.java delete mode 100644 tests/bugs196/java14/p.java (limited to 'tests/bugs196') diff --git a/tests/bugs196/java14/Jep305.java b/tests/bugs196/java14/Jep305.java deleted file mode 100644 index 3c526aef3..000000000 --- a/tests/bugs196/java14/Jep305.java +++ /dev/null @@ -1,22 +0,0 @@ -class Orange { - public String name1 = "orange"; -} - -class Apple { - public String name2 = "apple"; -} - -public class Jep305 { - public static void main(String []argv) { - print(new Orange()); - print(new Apple()); - } - - public static void print(Object obj) { - if (obj instanceof Orange o) { - System.out.println(o.name1); - } else if (obj instanceof Apple a) { - System.out.println(a.name2); - } - } -} diff --git a/tests/bugs196/java14/Person.java b/tests/bugs196/java14/Person.java deleted file mode 100644 index a74932c83..000000000 --- a/tests/bugs196/java14/Person.java +++ /dev/null @@ -1,2 +0,0 @@ -public record Person(String firstName, String lastName, int age) {} - diff --git a/tests/bugs196/java14/TraceRecordComponents.aj b/tests/bugs196/java14/TraceRecordComponents.aj deleted file mode 100644 index 80cc2444e..000000000 --- a/tests/bugs196/java14/TraceRecordComponents.aj +++ /dev/null @@ -1,5 +0,0 @@ -public aspect TraceRecordComponents { - before(): execution(public * *()) { - System.out.println(thisJoinPointStaticPart); - } -} diff --git a/tests/bugs196/java14/UsingPersonRecord.java b/tests/bugs196/java14/UsingPersonRecord.java deleted file mode 100644 index a974e9913..000000000 --- a/tests/bugs196/java14/UsingPersonRecord.java +++ /dev/null @@ -1,7 +0,0 @@ -public class UsingPersonRecord { - public static void main(String[] argv) { - Person p = new Person("A","B",99); - System.out.println(p); - System.out.println(p.firstName()); - } -} diff --git a/tests/bugs196/java14/p.java b/tests/bugs196/java14/p.java deleted file mode 100644 index a74932c83..000000000 --- a/tests/bugs196/java14/p.java +++ /dev/null @@ -1,2 +0,0 @@ -public record Person(String firstName, String lastName, int age) {} - -- cgit v1.2.3