title: Jackson mapper throws "conflicting setter definitions" on Samsung SM-T580
body: <p><strong>Problem:</strong> When converting JSON to an object with Jackson, the following exception is thrown on my Samsung SM-T580 (Android 6.0.1). The exception is not thrown on a OnePlus3 (Android 6.0.1) or ZenPad 8.0 (Android 5), only on the Samsung SM-T580.</p>
  
  <pre><code>java.lang.IllegalArgumentException: Conflicting setter definitions for property "myanmarEncoding": android.graphics.Paint#setMyanmarEncoding(1 params) vs android.graphics.Paint#setMyanmarEncoding(1 params)
             at [Source: N/A; line: -1, column: -1]
  </code></pre>
  
  <p>The mapping is performed like the following (Jackson version 2.8.4).</p>
  
  <pre><code>import com.fasterxml.jackson.databind.ObjectMapper;
  ...
  ObjectMapper objectMapper = new ObjectMapper();
  try {
      myObj = objectMapper.convertValue(document.getProperties(), MyClass.class);
  } catch (Exception e) {
      Log.e(TAG, e.getLocalizedMessage());
      return;
  }
  </code></pre>
  
  <p><strong>Approach:</strong> First, I've added <code>@JsonIgnoreProperties(ignoreUnknown = true)</code> to <code>MyClass</code>. Then, I've attempted to work around the issue by using <code>@JsonIgnoreType</code> on the <code>android.graphics.Paint</code> class via mix in. 
  This was kind of successful because it prevents the first exception.</p>
  
  <p>Unfortunately, another exception is thrown:</p>
  
  <pre><code>java.lang.IllegalArgumentException: Conflicting setter definitions for property "content": android.widget.HoverPopupWindow#setContent(1 params) vs android.widget.HoverPopupWindow#setContent(1 params)
             at [Source: N/A; line: -1, column: -1]
  </code></pre>
  
  <p>The method <code>android.graphics.Paint#setMyanmarEncoding</code> and the class <code>android.widget.HoverPopupWindow</code> seem to be part of the hidden android sources.</p>
  
  <p>What is happening here and how can I solve this problem?</p>