aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features1921/java21/NamedClassWithSimpleMainMethodPreview1.java
blob: d6fced008c3065e5d2f632cf2762f5836cb3f11b (plain)
1
2
3
4
5
6
7
8
9
10
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 class NamedClassWithSimpleMainMethodPreview1 {
  void main() {
    System.out.println("Hello world!");
  }
}