Skip to content

Commit

Permalink
Add failing test for #1679
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jun 27, 2017
1 parent 075319d commit 4009fe3
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.fasterxml.jackson.failing;

import java.util.*;

import com.fasterxml.jackson.databind.*;

public class KeySerializers1679Test extends BaseMapTest
{
/*
/**********************************************************
/* Unit tests
/**********************************************************
*/

private final ObjectMapper MAPPER = new ObjectMapper();

// [databind#1679]
public void testRecursion1679() throws Exception
{
Map<Object, Object> objectMap = new HashMap<Object, Object>();
objectMap.put(new Object(), new Object());
String json = MAPPER.writeValueAsString(objectMap);
assertEquals("{}", json);
}
}

0 comments on commit 4009fe3

Please sign in to comment.