Skip to content

Commit

Permalink
Fix #1253
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed May 27, 2016
1 parent 2f80ebd commit 8daddc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Project: jackson-databind
(reported by Mark W)
#1248: `Annotated` returns raw type in place of Generic Type in 2.7.x
(reported by Andrew J, apjoseph@github)
#1253: Problem with context handling for `TokenBuffer`, field name

2.7.4 (29-Apr-2016)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ public void close() throws IOException {
@Override
public final void writeStartArray() throws IOException
{
_writeContext.writeValue();
_append(JsonToken.START_ARRAY);
_writeContext = _writeContext.createChildArrayContext();
}
Expand All @@ -639,6 +640,7 @@ public final void writeEndArray() throws IOException
@Override
public final void writeStartObject() throws IOException
{
_writeContext.writeValue();
_append(JsonToken.START_OBJECT);
_writeContext = _writeContext.createChildObjectContext();
}
Expand All @@ -657,15 +659,15 @@ public final void writeEndObject() throws IOException
@Override
public final void writeFieldName(String name) throws IOException
{
_append(JsonToken.FIELD_NAME, name);
_writeContext.writeFieldName(name);
_append(JsonToken.FIELD_NAME, name);
}

@Override
public void writeFieldName(SerializableString name) throws IOException
{
_append(JsonToken.FIELD_NAME, name);
_writeContext.writeFieldName(name.getValue());
_append(JsonToken.FIELD_NAME, name);
}

/*
Expand Down

0 comments on commit 8daddc0

Please sign in to comment.