debug Ausgabe korriegiert!

This commit is contained in:
Martin Plümicke 2015-02-07 15:19:10 +01:00
parent fed7519f84
commit 267083fbb4

View File

@ -1499,6 +1499,42 @@ throws MatchException
bRegel = true;
continue;
}
if (P.OperatorSmallerExtends()) //PL 15-02-03 Es muessen noch
{
if(P.TA1 instanceof ExtendsWildcardType && P.TA2 instanceof ExtendsWildcardType)
{
inferencelog.debug(" Extends <? Extends");
H.add(new Pair(((WildcardType)P.TA1).GetWildcardType(),((WildcardType)P.TA2).GetWildcardType(), PairOperator.Equal));
bRegel = true;
continue;
}
if(P.TA1 instanceof SuperWildcardType && P.TA2 instanceof SuperWildcardType)
{
inferencelog.debug(" Super <? Super");
H.add(new Pair(((WildcardType)P.TA1).GetWildcardType(),((WildcardType)P.TA2).GetWildcardType(), PairOperator.Equal));
bRegel = true;
continue;
}
if(P.TA1 instanceof ExtendsWildcardType && P.TA2 instanceof SuperWildcardType)
{
inferencelog.debug(" Extends <? Super");
H.add(new Pair(((WildcardType)P.TA1).GetWildcardType(),((WildcardType)P.TA2).GetWildcardType(), PairOperator.Smaller));
bRegel = true;
continue;
}
}
// Subst --> noch zu pr<EFBFBD>fen
if( P.TA1 instanceof TypePlaceholder && P.OperatorEqual() && useSubst) //&& P.TA2 instanceof RefType )
@ -1539,7 +1575,7 @@ throws MatchException
if( !P.bSubst )
{
inferencelog.debug(" ================================");
inferencelog.debug(" SUBSTITUTE: in " + E.elementAt(q).toString() + " alle " + P.TA1.getName() + " durch " + P.TA2.getName());
inferencelog.debug(" SUBSTITUTE: in " + H.elementAt(q).toString() + " alle " + P.TA1.getName() + " durch " + P.TA2.getName());
inferencelog.debug(" ================================");
bRegel = true;
bTempSubst = true;