Skip to content

Commit 6e0efe7

Browse files
author
“threedr3am”
committed
test
1 parent d1da55b commit 6e0efe7

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package com.threedr3am.bug.fastjson.test;
2+
3+
import com.alibaba.fastjson.JSON;
4+
import com.alibaba.fastjson.parser.ParserConfig;
5+
6+
/**
7+
* @author threedr3am
8+
*/
9+
public class Threedr3am {
10+
11+
public static void main(String[] args) {
12+
ParserConfig.global.addAccept("com.threedr3am.bug.fastjson.test.AAAA");
13+
String json = "{\"@type\":\"com.threedr3am.bug.fastjson.test.AAAA\", \"rrr\": {\"@type\": \"com.threedr3am.bug.fastjson.test.BBBB\", \"eval\": \"threedr3am\"}}";
14+
JSON.parse(json);
15+
}
16+
17+
}
18+
class AAAA {
19+
private Runnable rrr;
20+
public Runnable getRrr() {
21+
return rrr;
22+
}
23+
public void setRrr(Runnable rrr) {
24+
this.rrr = rrr;
25+
}
26+
}
27+
class BBBB extends CCCC {
28+
private String eval;
29+
public String getEval() {
30+
return eval;
31+
}
32+
public void setEval(String eval) {
33+
System.out.println(eval + " eval!");
34+
this.eval = eval;
35+
}
36+
}
37+
class CCCC implements Runnable {
38+
@Override
39+
public void run() { }
40+
}

jackson/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<artifactId>jackson</artifactId>
1313

1414
<properties>
15-
<jackson.version>2.9.10.3</jackson.version>
15+
<jackson.version>2.9.10.4</jackson.version>
1616
</properties>
1717

1818
<dependencies>

0 commit comments

Comments
 (0)