Closed GoogleCodeExporter closed 9 years ago
This seems to be solved in 1.2.1, the issue is not reproducible for me
Original comment by dietrich...@gmail.com
on 26 Oct 2011 at 11:22
Original comment by smgfree...@gmail.com
on 25 Apr 2012 at 11:27
[deleted comment]
Odd. Not seeing this comment on the web page.
Have you tried any the candidate 1.3 release?
S.
Original comment by smgfree...@gmail.com
on 15 May 2012 at 7:08
Yeah, I deleted my comment about seeing this in 1.2.1. I was seeing it with a
custom matcher and it turns out the issue was with my matcher. I can confirm
that I see this issue in 1.2 but not in 1.2.1.
For anyone who comes across something similar, the issue for me turned out to
be that the type parameters to Matcher were too strict. Replacing this:
public static <K, V> Matcher<Map<K, V>> hasSize(final int size) { ... }
with this:
public static <K, V> Matcher<Map<? extends K, ? extends V>> hasSize(final int
size) { ... }
Got rid of the error I was seeing. I'm guessing v1.2.1 introduced a similar
change to hasKey/hasValue.
Original comment by jdotmc@gmail.com
on 15 May 2012 at 1:16
Original issue reported on code.google.com by
alanlew...@gmail.com
on 14 Oct 2010 at 8:59