SkipEmptyRepresenter needs to be updated to deal with anchors

Issue #406 wontfix
Dustin Spicuzza
created an issue

I'm not quite sure how this happened, but it seems that if you have two empty lists and SnakeYaml decides to create one of them as an anchor, then the SkipEmptyRepresenter class doesn't work correctly (because an AnchorNode is not a CollectionNode). What needs to happen if it's an anchor is valueNode needs to be set to valueNode.getRealNode().

I would pull request this change but I can't figure out the right way to create branches/etc using mercurial and my other change is sitting in my default branch.


Comments (2)

  1. Log in to comment