This is an automated email from the ASF dual-hosted git repository.
crazyhzm pushed a commit to branch 3.1
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.1 by this push:
new 945914b504 Support fastjson2 in native case (#11325)
945914b504 is described below
commit 945914b5046f8982b62a6021000d423c122825a8
Author: huazhongming <[email protected]>
AuthorDate: Wed Jan 18 17:52:29 2023 +0800
Support fastjson2 in native case (#11325)
Signed-off-by: crazyhzm <[email protected]>
---
.../META-INF/native-image/reflect-config.json | 92 ++++++++++++++++++++++
.../META-INF/native-image/resource-config.json | 6 ++
2 files changed, 98 insertions(+)
diff --git
a/dubbo-native-plugin/src/main/resources/META-INF/native-image/reflect-config.json
b/dubbo-native-plugin/src/main/resources/META-INF/native-image/reflect-config.json
index be002ae8a5..f0de26256b 100644
---
a/dubbo-native-plugin/src/main/resources/META-INF/native-image/reflect-config.json
+++
b/dubbo-native-plugin/src/main/resources/META-INF/native-image/reflect-config.json
@@ -935,6 +935,26 @@
}
]
},
+ {
+ "name":
"org.apache.dubbo.common.serialize.hessian2.Hessian2ScopeModelInitializer",
+ "allPublicMethods": true,
+ "methods": [
+ {
+ "name": "<init>",
+ "parameterTypes": []
+ }
+ ]
+ },
+ {
+ "name":
"org.apache.dubbo.common.serialize.fastjson2.Fastjson2ScopeModelInitializer",
+ "allPublicMethods": true,
+ "methods": [
+ {
+ "name": "<init>",
+ "parameterTypes": []
+ }
+ ]
+ },
{
"name": "org.apache.dubbo.common.URL",
"allDeclaredFields": true
@@ -1058,6 +1078,78 @@
{
"name": "org.apache.dubbo.common.serialize.hessian2.Hessian2Serialization",
"allPublicMethods": true,
+ "methods": [
+ {
+ "name": "<init>",
+ "parameterTypes": [
+ "org.apache.dubbo.rpc.model.FrameworkModel"
+ ]
+ }
+ ]
+ },
+ {
+ "name":
"org.apache.dubbo.common.serialize.hessian2.Hessian2FactoryManager",
+ "allPublicMethods": true,
+ "methods": [
+ {
+ "name": "<init>",
+ "parameterTypes": [
+ "org.apache.dubbo.rpc.model.FrameworkModel"
+ ]
+ }
+ ]
+ },
+ {
+ "name":
"org.apache.dubbo.common.serialize.fastjson2.FastJson2Serialization",
+ "allPublicMethods": true,
+ "methods": [
+ {
+ "name": "<init>",
+ "parameterTypes": [
+ "org.apache.dubbo.rpc.model.FrameworkModel"
+ ]
+ }
+ ]
+ },
+ {
+ "name":
"org.apache.dubbo.common.serialize.fastjson2.Fastjson2CreatorManager",
+ "allPublicMethods": true,
+ "methods": [
+ {
+ "name": "<init>",
+ "parameterTypes": [
+ "org.apache.dubbo.rpc.model.FrameworkModel"
+ ]
+ }
+ ]
+ },
+ {
+ "name":
"org.apache.dubbo.common.serialize.fastjson2.Fastjson2SecurityManager",
+ "allPublicMethods": true,
+ "methods": [
+ {
+ "name": "<init>",
+ "parameterTypes": [
+ "org.apache.dubbo.rpc.model.FrameworkModel"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "org.apache.dubbo.common.utils.SerializeSecurityManager",
+ "allPublicMethods": true,
+ "methods": [
+ {
+ "name": "<init>",
+ "parameterTypes": [
+ "org.apache.dubbo.rpc.model.FrameworkModel"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "org.apache.dubbo.common.utils.SerializeClassChecker",
+ "allPublicMethods": true,
"methods": [
{
"name": "<init>",
diff --git
a/dubbo-native-plugin/src/main/resources/META-INF/native-image/resource-config.json
b/dubbo-native-plugin/src/main/resources/META-INF/native-image/resource-config.json
index f8deec494a..b2acd249aa 100644
---
a/dubbo-native-plugin/src/main/resources/META-INF/native-image/resource-config.json
+++
b/dubbo-native-plugin/src/main/resources/META-INF/native-image/resource-config.json
@@ -156,6 +156,12 @@
},
{
"pattern":
"\\QMETA-INF/dubbo/internal/org.apache.dubbo.common.metrics.service.MetricsServiceExporter\\E"
+ },
+ {
+ "pattern": "\\Qsecurity/serialize.blockedlist\\E"
+ },
+ {
+ "pattern": "\\Qsecurity/serialize.allowlist\\E"
}
]
},