File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
src/test/java/com/fasterxml/jackson/failing Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ Project: jackson-databind
10
10
#1288: Type id not exposed for `JsonTypeInfo.As.EXTERNAL_PROPERTY` even when `visible` set to `true`
11
11
(reported by libetl@github)
12
12
#1289: Optimize construction of `ArrayList`, `LinkedHashMap` instances
13
+ #1291: Backward-incompatible behaviour of 2.8: deserializing enum types
14
+ with two static factory methods fail by default
13
15
14
16
2.8.0 (04-Jul-2016)
15
17
Original file line number Diff line number Diff line change 1
1
package com .fasterxml .jackson .failing ;
2
2
3
+ import com .fasterxml .jackson .annotation .JsonCreator ;
3
4
import com .fasterxml .jackson .databind .BaseMapTest ;
4
5
import com .fasterxml .jackson .databind .ObjectMapper ;
5
6
@@ -20,6 +21,7 @@ static enum Enum1291 {
20
21
this .name = name ;
21
22
}
22
23
24
+ // @JsonCreator
23
25
public static Enum1291 fromString (String name ) {
24
26
for (Enum1291 type : Enum1291 .values ()) {
25
27
if (type .name .equals (name )) {
Original file line number Diff line number Diff line change 4
4
import com .fasterxml .jackson .annotation .JsonProperty ;
5
5
import com .fasterxml .jackson .databind .*;
6
6
7
+ // Ideally should allow multiple-parameter Creator; but not
8
+ // yet allowed or supported
7
9
public class EnumCreatorTest929 extends BaseMapTest
8
10
{
9
11
static enum MyEnum
You can’t perform that action at this time.
0 commit comments