From 417a0224e5f585850593ebac55b6083636a25fd9 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Thu, 31 Mar 2022 11:31:20 +0700 Subject: 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 --- .../github_145/add_reads/other.module/module-info.java | 3 +++ .../add_reads/other.module/other/module/Application.java | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 tests/bugs199/github_145/add_reads/other.module/module-info.java create mode 100644 tests/bugs199/github_145/add_reads/other.module/other/module/Application.java (limited to 'tests/bugs199/github_145/add_reads/other.module') 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 list = new ArrayList<>(); + Modular modular = new Modular(); + + public static void main(String[] args) { + System.out.println("One modular class can use another one"); + } +} -- cgit v1.2.3