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 @@ -60,6 +60,7 @@ Project: jackson-databind
60
60
(reported by Mark W)
61
61
#1248: `Annotated` returns raw type in place of Generic Type in 2.7.x
62
62
(reported by Andrew J, apjoseph@github)
63
+ #1253: Problem with context handling for `TokenBuffer`, field name
63
64
64
65
2.7.4 (29-Apr-2016)
65
66
Original file line number Diff line number Diff line change @@ -623,6 +623,7 @@ public void close() throws IOException {
623
623
@ Override
624
624
public final void writeStartArray () throws IOException
625
625
{
626
+ _writeContext .writeValue ();
626
627
_append (JsonToken .START_ARRAY );
627
628
_writeContext = _writeContext .createChildArrayContext ();
628
629
}
@@ -641,6 +642,7 @@ public final void writeEndArray() throws IOException
641
642
@ Override
642
643
public final void writeStartObject () throws IOException
643
644
{
645
+ _writeContext .writeValue ();
644
646
_append (JsonToken .START_OBJECT );
645
647
_writeContext = _writeContext .createChildObjectContext ();
646
648
}
@@ -670,15 +672,15 @@ public final void writeEndObject() throws IOException
670
672
@ Override
671
673
public final void writeFieldName (String name ) throws IOException
672
674
{
673
- _append (JsonToken .FIELD_NAME , name );
674
675
_writeContext .writeFieldName (name );
676
+ _append (JsonToken .FIELD_NAME , name );
675
677
}
676
678
677
679
@ Override
678
680
public void writeFieldName (SerializableString name ) throws IOException
679
681
{
680
- _append (JsonToken .FIELD_NAME , name );
681
682
_writeContext .writeFieldName (name .getValue ());
683
+ _append (JsonToken .FIELD_NAME , name );
682
684
}
683
685
684
686
/*
You can’t perform that action at this time.
0 commit comments