Add graalvm-native-images: Boot 4.1 + GraalVM CE for JDK 25, AOT processing,
the tracing agent, and a real reflection-collision trap Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EQNA6DJ9VgCtW6zhCE8Xud
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
$ /opt/graalvm25/bin/java -agentlib:native-image-agent=config-output-dir=agent-output -jar target/app.jar --server.port=8083
|
||||
Started GraalvmDemoApplication in 5.552 seconds (process running for 6.51)
|
||||
|
||||
$ curl -s localhost:8083/hello
|
||||
Hello from a GraalVM native image!
|
||||
$ curl -s "localhost:8083/report?format=plain"
|
||||
OK via reflection on com.ankurm.graalvmdemo.report.PlainTextReport: REPORT: quarterly numbers
|
||||
$ curl -s "localhost:8083/report?format=json"
|
||||
OK via reflection on com.ankurm.graalvmdemo.report.JsonReport: {"report":"quarterly numbers"}
|
||||
|
||||
$ grep -A4 '"com.ankurm.graalvmdemo.report.PlainTextReport"' agent-output/reachability-metadata.json
|
||||
{
|
||||
"type": "com.ankurm.graalvmdemo.report.PlainTextReport",
|
||||
"methods": [
|
||||
{ "name": "<init>", "parameterTypes": [] }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user