File tree 1 file changed +12
-1
lines changed
src/test/java/com/fasterxml/jackson/databind/ser
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,12 @@ public Bean1178Wrapper(int count) {
73
73
}
74
74
}
75
75
}
76
-
76
+
77
+ static class Bean1178Holder {
78
+ @ JsonSerialize (as =Bean1178Abstract .class )
79
+ public Bean1178Base value = new Bean1178Impl ();
80
+ }
81
+
77
82
/*
78
83
/**********************************************************
79
84
/* Test methods
@@ -107,4 +112,10 @@ public void testSpecializedContentAs() throws IOException {
107
112
assertEquals (aposToQuotes ("{'values':[{'a':1,'b':2}]}" ),
108
113
WRITER .writeValueAsString (new Bean1178Wrapper (1 )));
109
114
}
115
+
116
+ // for [databind#1231] (and continuation of [databind#1178])
117
+ public void testSpecializedAsIntermediate () throws IOException {
118
+ assertEquals (aposToQuotes ("{'value':{'a':1,'b':2}}" ),
119
+ WRITER .writeValueAsString (new Bean1178Holder ()));
120
+ }
110
121
}
You can’t perform that action at this time.
0 commit comments