Skip to content

Commit

Permalink
Add explicit reflection configuration for native image.
Browse files Browse the repository at this point in the history
Resolves markus-wa#13
  • Loading branch information
byronclark committed Aug 27, 2022
1 parent 789ac6f commit 4ddfccb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions package/build-native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ native-image --report-unsupported-elements-at-runtime \
--initialize-at-build-time \
--no-server \
-jar ../target/cq.jar \
-H:ReflectionConfigurationFiles=./reflection-config.json \
-H:Name=../target/cq
22 changes: 22 additions & 0 deletions package/reflection-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"name":"org.msgpack.template.CollectionTemplate",
"methods":[{"name":"<init>","parameterTypes":["org.msgpack.template.Template"] }]
},
{
"name":"org.msgpack.template.ListTemplate",
"methods":[{"name":"<init>","parameterTypes":["org.msgpack.template.Template"] }]
},
{
"name":"org.msgpack.template.MapTemplate",
"methods":[{"name":"<init>","parameterTypes":["org.msgpack.template.Template","org.msgpack.template.Template"] }]
},
{
"name":"org.msgpack.template.SetTemplate",
"methods":[{"name":"<init>","parameterTypes":["org.msgpack.template.Template"] }]
},
{
"name":"org.msgpack.template.builder.JavassistTemplateBuilder",
"methods":[{"name":"<init>","parameterTypes":["org.msgpack.template.TemplateRegistry","java.lang.ClassLoader"] }]
}
]

0 comments on commit 4ddfccb

Please sign in to comment.