forked from JavaTX/JavaCompilerCore
Fix wrong class generics being used
This commit is contained in:
parent
3963baa9ce
commit
1ad5540500
@ -537,6 +537,7 @@ public class ASTToTargetAST {
|
||||
|
||||
var classGenerics = generics(owner);
|
||||
var genericsOfClass = classGenerics.javaGenerics();
|
||||
var txGenericsOfClass = classGenerics.txGenerics();
|
||||
var simplifiedConstraints = new HashSet<>(this.simplifiedConstraints);
|
||||
|
||||
HashSet<TypePlaceholder> txTypeVariables = new HashSet<>();
|
||||
@ -545,7 +546,7 @@ public class ASTToTargetAST {
|
||||
HashSet<TypePlaceholder> javaTypeVariablesOfClass = new HashSet<>();
|
||||
|
||||
methodFindTypeVariables(method, genericsOfClass, javaTypeVariablesOfClass, javaTypeVariables, equality);
|
||||
methodFindTypeVariables(method, genericsOfClass, txTypeVariablesOfClass, txTypeVariables, txEquality);
|
||||
methodFindTypeVariables(method, txGenericsOfClass, txTypeVariablesOfClass, txTypeVariables, txEquality);
|
||||
|
||||
methodFindConstraints(owner, method, simplifiedConstraints, javaTypeVariables, classGenerics.userDefinedGenerics, javaTypeVariablesOfClass, javaResult, equality);
|
||||
methodFindConstraints(owner, method, simplifiedConstraints, txTypeVariables, classGenerics.userDefinedGenerics, txTypeVariablesOfClass, txResult, txEquality);
|
||||
|
Loading…
Reference in New Issue
Block a user