assertion

This commit is contained in:
Alexey Kudravtsev
2010-05-07 13:46:30 +04:00
parent 64ba6e6ad2
commit 83a88afdd5
@@ -98,7 +98,12 @@ public class JavaResolveCache {
type = ConcurrencyUtil.cacheOrGet(myCalculatedTypes, expr, type);
}
if (!type.isValid()) {
LOG.error("Type is invalid: " + type+"; expr: '"+expr+"' is "+(expr.isValid() ? "valid":"invalid"));
if (expr.isValid()) {
LOG.error("Type is invalid: " + type + "; expr: '" + expr + "' is valid");
}
else {
LOG.error("Expression: '"+expr+"' is invalid, must not be used for getType()");
}
}
return type == NULL_TYPE ? null : type;
}