forked from JavaTX/JavaCompilerCore
NullPointerException in Unify beseitigt
This commit is contained in:
parent
81416b8bf4
commit
383e5bd883
@ -24,7 +24,6 @@ import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
|
||||
import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
|
||||
import de.dhbwstuttgart.typeinference.unify.CSubstitutionGenVar;
|
||||
import de.dhbwstuttgart.typeinference.unify.CSubstitutionSet;
|
||||
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
|
||||
|
||||
|
||||
|
||||
|
@ -16,7 +16,6 @@ import de.dhbwstuttgart.typeinference.FunN;
|
||||
import de.dhbwstuttgart.typeinference.FunNInterface;
|
||||
import de.dhbwstuttgart.typeinference.FunNMethod;
|
||||
import de.dhbwstuttgart.typeinference.exceptions.TypeinferenceException;
|
||||
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
|
||||
|
||||
/**
|
||||
* Eine Sammlung von TypeAssumptions.
|
||||
|
@ -1068,6 +1068,10 @@ throws MatchException
|
||||
for(int i=0; i < FCtype.get_ParaList().size(); i++) {
|
||||
if (FCtype.get_ParaList().elementAt(i) instanceof GenericTypeVar) {
|
||||
inferencelog.debug("PUT");
|
||||
//TODO Auf Korrektheit prüfen:
|
||||
if(tomatch.getParaList().size() != FCtype.getParaList().size()){
|
||||
throw new MatchException("Different Parameter Sizes!");
|
||||
}//Angefügt von Andreas Stadelmeier (ENDE)
|
||||
ht.put(((GenericTypeVar)FCtype.get_ParaList().elementAt(i)).getName(),
|
||||
tomatch.get_ParaList().elementAt(i));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user