Skip to content

Commit

Permalink
Add explicit reflection configuration for msgpack (#14)
Browse files Browse the repository at this point in the history
Resolves #13
  • Loading branch information
byronclark authored Aug 29, 2022
1 parent 789ac6f commit 884f7ed
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions package/build-native.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,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
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 884f7ed

Please sign in to comment.