< prev index next >
src/share/vm/runtime/reflection.cpp
Print this page
*** 124,133 ****
--- 124,135 ----
case T_SHORT:
switch (current_type) {
case T_BYTE:
value->s = (jshort) value->b;
return;
+ default:
+ break;
}
break; // fail
case T_INT:
switch (current_type) {
case T_BYTE:
*** 137,146 ****
--- 139,150 ----
value->i = (jint) value->c;
return;
case T_SHORT:
value->i = (jint) value->s;
return;
+ default:
+ break;
}
break; // fail
case T_LONG:
switch (current_type) {
case T_BYTE:
*** 153,162 ****
--- 157,168 ----
value->j = (jlong) value->s;
return;
case T_INT:
value->j = (jlong) value->i;
return;
+ default:
+ break;
}
break; // fail
case T_FLOAT:
switch (current_type) {
case T_BYTE:
*** 172,181 ****
--- 178,189 ----
value->f = (jfloat) value->i;
return;
case T_LONG:
value->f = (jfloat) value->j;
return;
+ default:
+ break;
}
break; // fail
case T_DOUBLE:
switch (current_type) {
case T_BYTE:
*** 194,203 ****
--- 202,213 ----
value->d = (jdouble) value->f;
return;
case T_LONG:
value->d = (jdouble) value->j;
return;
+ default:
+ break;
}
break; // fail
default:
break; // fail
}
< prev index next >