Skip to content

Commit

Permalink
Fix an issue wrt YAMLParser currentName vs getCurrentName, SOE (due…
Browse files Browse the repository at this point in the history
… to refactoring)
  • Loading branch information
cowtowncoder committed Dec 12, 2023
1 parent 5aabe07 commit 0613698
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -932,18 +932,23 @@ public String currentName() throws IOException
return super.currentName();
}

// NOTE: must override just to avoid problems b/w this and `currentName()`
// calls wrt parent definitions
@Deprecated // since 2.17
@Override
public String getCurrentName() throws IOException {
return currentName();
if (_currToken == JsonToken.FIELD_NAME) {
return _currentFieldName;
}
return super.getCurrentName();
}

// For now we do not store char[] representation...
@Override
public boolean hasTextCharacters() {
return false;
}

@Override
public String getText() throws IOException
{
Expand Down

0 comments on commit 0613698

Please sign in to comment.