framework/tests/all-systems/java8inference/Bug15.java
raw| 1 | package inference; |
| 2 | |
| 3 | import java.util.Map.Entry; |
| 4 | |
| 5 | @SuppressWarnings("") // check for crashes |
| 6 | public class Bug15<B> { |
| 7 | public void putAll(Entry<? extends Class<? extends B>, B> entry) { |
| 8 | cast(entry.getKey(), entry.getValue()); |
| 9 | } |
| 10 | |
| 11 | private static <F, T extends F> T cast(Class<T> type, F value) { |
| 12 | throw new RuntimeException(); |
| 13 | } |
| 14 | } |