Add jbang: single-file Java with JBang 0.132.1 on JDK 25 (deps, compact source files, Spring Boot, templates, native)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
7c677a39d2
commit
ddc3ec9d90
@@ -0,0 +1,10 @@
|
||||
//JAVA 25+
|
||||
|
||||
// A compact source file (JEP 512, final in Java 25): no class, no "public static",
|
||||
// no String[] args. The compiler wraps this in an implicit class named after the file.
|
||||
String greeting = "Hello from a compact source file";
|
||||
|
||||
void main() {
|
||||
IO.println(greeting);
|
||||
IO.println("Implicit class: " + getClass().getName());
|
||||
}
|
||||
Reference in New Issue
Block a user