We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67b2296 commit 4fef094Copy full SHA for 4fef094
src/main/java/com/alibaba/fastjson/JSON.java
@@ -113,10 +113,19 @@ private static void config(Properties properties) {
113
}
114
115
{
116
- if ("true".equals(properties.getProperty("parser.features.ErrorOnEnumNotMatch"))) {
+ if ("true".equals(properties.getProperty("parser.features.ErrorOnEnumNotMatch"))
117
+ || "true".equals(properties.getProperty("fastjson.parser.features.ErrorOnEnumNotMatch")))
118
+ {
119
DEFAULT_PARSER_FEATURE |= Feature.ErrorOnEnumNotMatch.getMask();
120
121
122
+
123
124
+ if ("false".equals(properties.getProperty("fastjson.asmEnable"))) {
125
+ ParserConfig.getGlobalInstance().setAsmEnable(false);
126
+ SerializeConfig.getGlobalInstance().setAsmEnable(false);
127
+ }
128
129
130
131
/**
0 commit comments