File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/main/java/com/alibaba/fastjson Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,19 @@ private static void config(Properties properties) {
113
113
}
114
114
115
115
{
116
- if ("true" .equals (properties .getProperty ("parser.features.ErrorOnEnumNotMatch" ))) {
116
+ if ("true" .equals (properties .getProperty ("parser.features.ErrorOnEnumNotMatch" ))
117
+ || "true" .equals (properties .getProperty ("fastjson.parser.features.ErrorOnEnumNotMatch" )))
118
+ {
117
119
DEFAULT_PARSER_FEATURE |= Feature .ErrorOnEnumNotMatch .getMask ();
118
120
}
119
121
}
122
+
123
+ {
124
+ if ("false" .equals (properties .getProperty ("fastjson.asmEnable" ))) {
125
+ ParserConfig .getGlobalInstance ().setAsmEnable (false );
126
+ SerializeConfig .getGlobalInstance ().setAsmEnable (false );
127
+ }
128
+ }
120
129
}
121
130
122
131
/**
You can’t perform that action at this time.
0 commit comments