diff options
Diffstat (limited to 'tests/features1921/java21/NamedAspectWithSimpleMainMethodPreview1.aj')
-rw-r--r-- | tests/features1921/java21/NamedAspectWithSimpleMainMethodPreview1.aj | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/features1921/java21/NamedAspectWithSimpleMainMethodPreview1.aj b/tests/features1921/java21/NamedAspectWithSimpleMainMethodPreview1.aj new file mode 100644 index 000000000..337f1b9b1 --- /dev/null +++ b/tests/features1921/java21/NamedAspectWithSimpleMainMethodPreview1.aj @@ -0,0 +1,11 @@ +/** + * Example according to <a href="https://openjdk.org/jeps/445">JEP 445</a> + * <p> + * This actually does not require any compiler changes and should be compilable without {@code --enable-preview}. + * It merely serves as a test case for the JVM launcher protocol. + */ +public aspect NamedAspectWithSimpleMainMethodPreview1 { + void main() { + System.out.println("Hello world!"); + } +} |