File tree 2 files changed +5
-2
lines changed
src/main/java/com/fasterxml/jackson/databind/util
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ Project: jackson-databind
20
20
(reported by Mark W)
21
21
#1248: `Annotated` returns raw type in place of Generic Type in 2.7.x
22
22
(reported by Andrew J, apjoseph@github)
23
+ #1253: Problem with context handling for `TokenBuffer`, field name
23
24
24
25
2.7.4 (29-Apr-2016)
25
26
Original file line number Diff line number Diff line change @@ -621,6 +621,7 @@ public void close() throws IOException {
621
621
@ Override
622
622
public final void writeStartArray () throws IOException
623
623
{
624
+ _writeContext .writeValue ();
624
625
_append (JsonToken .START_ARRAY );
625
626
_writeContext = _writeContext .createChildArrayContext ();
626
627
}
@@ -639,6 +640,7 @@ public final void writeEndArray() throws IOException
639
640
@ Override
640
641
public final void writeStartObject () throws IOException
641
642
{
643
+ _writeContext .writeValue ();
642
644
_append (JsonToken .START_OBJECT );
643
645
_writeContext = _writeContext .createChildObjectContext ();
644
646
}
@@ -657,15 +659,15 @@ public final void writeEndObject() throws IOException
657
659
@ Override
658
660
public final void writeFieldName (String name ) throws IOException
659
661
{
660
- _append (JsonToken .FIELD_NAME , name );
661
662
_writeContext .writeFieldName (name );
663
+ _append (JsonToken .FIELD_NAME , name );
662
664
}
663
665
664
666
@ Override
665
667
public void writeFieldName (SerializableString name ) throws IOException
666
668
{
667
- _append (JsonToken .FIELD_NAME , name );
668
669
_writeContext .writeFieldName (name .getValue ());
670
+ _append (JsonToken .FIELD_NAME , name );
669
671
}
670
672
671
673
/*
You can’t perform that action at this time.
0 commit comments