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
18 lines
779 B
Plaintext
18 lines
779 B
Plaintext
$ /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": [] }
|
|
]
|
|
}
|