aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs199/github_145/add_reads/other.module
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2022-03-31 11:31:20 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2022-03-31 14:14:45 +0700
commit417a0224e5f585850593ebac55b6083636a25fd9 (patch)
treea24de06e55c3e1c5c56bf515be924f9d73591cea /tests/bugs199/github_145/add_reads/other.module
parent35e93cf9dfc51aa8b47bc798c375b0ee01e24d42 (diff)
downloadaspectj-417a0224e5f585850593ebac55b6083636a25fd9.tar.gz
aspectj-417a0224e5f585850593ebac55b6083636a25fd9.zip
Add some smoke test cases for '--add-reads' and '--add-modules'
in order to show that the compiler options basically work. The test cases are by no means exhaustive and simply verify that it works at all. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/bugs199/github_145/add_reads/other.module')
-rw-r--r--tests/bugs199/github_145/add_reads/other.module/module-info.java3
-rw-r--r--tests/bugs199/github_145/add_reads/other.module/other/module/Application.java15
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs199/github_145/add_reads/other.module/module-info.java b/tests/bugs199/github_145/add_reads/other.module/module-info.java
new file mode 100644
index 000000000..3cc4823e7
--- /dev/null
+++ b/tests/bugs199/github_145/add_reads/other.module/module-info.java
@@ -0,0 +1,3 @@
+module other.module {
+ exports other.module;
+}
diff --git a/tests/bugs199/github_145/add_reads/other.module/other/module/Application.java b/tests/bugs199/github_145/add_reads/other.module/other/module/Application.java
new file mode 100644
index 000000000..ff299017e
--- /dev/null
+++ b/tests/bugs199/github_145/add_reads/other.module/other/module/Application.java
@@ -0,0 +1,15 @@
+package other.module;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import my.module.Modular;
+
+public class Application {
+ List<String> list = new ArrayList<>();
+ Modular modular = new Modular();
+
+ public static void main(String[] args) {
+ System.out.println("One modular class can use another one");
+ }
+}