Commit bb3bdde4 authored by Eric Bruneton's avatar Eric Bruneton

Address the code review comments.

parent 7d045e01
......@@ -745,7 +745,7 @@ public class GeneratorAdapter extends LocalVariablesSorter {
|| from.getSort() > Type.DOUBLE
|| to.getSort() < Type.BOOLEAN
|| to.getSort() > Type.DOUBLE) {
throw new IllegalArgumentException();
throw new IllegalArgumentException("Cannot cast from " + from + " to " + to);
}
if (from == Type.DOUBLE_TYPE) {
if (to == Type.FLOAT_TYPE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment