Skip to content

Commit

Permalink
jsonrpc requests parsing fix for native-image.
Browse files Browse the repository at this point in the history
- bring back custom nativeImageRunAgent special run options
- use spray to parse JSON on input (probably not needed, but we want to get rid of json4s anyway)
- run native-image agent again and add some more entries, including the json parsing helper classes
  • Loading branch information
fiatjaf committed Jun 30, 2022
1 parent a6ed118 commit 65fab43
Show file tree
Hide file tree
Showing 6 changed files with 475 additions and 47 deletions.
18 changes: 18 additions & 0 deletions native-image-configs/jni-config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
[
{
"name":"[Lcom.sun.management.internal.DiagnosticCommandArgumentInfo;"
},
{
"name":"[Lcom.sun.management.internal.DiagnosticCommandInfo;"
},
{
"name":"com.sun.management.internal.DiagnosticCommandArgumentInfo",
"methods":[{"name":"<init>","parameterTypes":["java.lang.String","java.lang.String","java.lang.String","java.lang.String","boolean","boolean","boolean","int"] }]
},
{
"name":"com.sun.management.internal.DiagnosticCommandInfo",
"methods":[{"name":"<init>","parameterTypes":["java.lang.String","java.lang.String","java.lang.String","java.lang.String","java.lang.String","java.lang.String","boolean","java.util.List"] }]
},
{
"name":"java.lang.Boolean",
"methods":[{"name":"getBoolean","parameterTypes":["java.lang.String"] }]
Expand All @@ -10,6 +24,10 @@
{"name":"loadClass","parameterTypes":["java.lang.String"] }
]
},
{
"name":"java.util.Arrays",
"methods":[{"name":"asList","parameterTypes":["java.lang.Object[]"] }]
},
{
"name":"jdk.internal.loader.ClassLoaders$PlatformClassLoader"
},
Expand Down
3 changes: 3 additions & 0 deletions native-image-configs/proxy-config.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[
{
"interfaces":["sun.misc.SignalHandler"]}

]
Loading

0 comments on commit 65fab43

Please sign in to comment.