Clarifying message + making fields final

This commit is contained in:
Andrey Breslav
2012-08-22 12:30:04 +04:00
parent 096963d7ad
commit 763e15a567
@@ -441,11 +441,11 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> {
}
private abstract class ForLoopGenerator {
protected JetForExpression expression;
protected Type loopRangeType;
protected JetType expressionType;
protected VariableDescriptor parameterDescriptor;
Label end = new Label();
protected final JetForExpression expression;
protected final Type loopRangeType;
protected final JetType expressionType;
protected final VariableDescriptor parameterDescriptor;
protected final Label end = new Label();
public ForLoopGenerator(JetForExpression expression, Type loopRangeType) {
this.expression = expression;
@@ -1673,7 +1673,7 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> {
StackValue.onStack(intermediateType).put(type, v);
}
else {
throw new UnsupportedOperationException();
throw new UnsupportedOperationException("Unsupported receiver type: " + descriptor);
}
}