Merge pull request #9545 from igfoo/igfoo/type_cycles

Java: Fix RefType.getAStrictAncestor() in the presence of type hierarchy cycles
This commit is contained in:
Ian Lynagh
2022-07-12 14:28:54 +01:00
committed by GitHub
4 changed files with 19 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
public class Test {
}

View File

@@ -0,0 +1,6 @@
| BiFunction<? super Object,? super Object,? extends Object> |
| BiFunction<? super Object,? super Object,?> |
| Function<? super Object,? extends Object> |
| Function<? super Object,?> |
| Map<? extends Object,? extends Object> |
| Map<?,?> |

View File

@@ -0,0 +1,5 @@
import java
from RefType t
where t = t.getAStrictAncestor()
select t.toString()