verify.cc (_Jv_BytecodeVerifier::branch_prepass): Skip a short, not a byte.

* verify.cc (_Jv_BytecodeVerifier::branch_prepass) [op_sipush]:
	Skip a short, not a byte.
	[op_newarray]: Skip a byte, not a short.

From-SVN: r47163
This commit is contained in:
Tom Tromey 2001-11-19 02:13:08 +00:00 committed by Tom Tromey
parent 4c6d901a76
commit 7db43d37b1
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2001-11-18 Tom Tromey <tromey@redhat.com>
* verify.cc (_Jv_BytecodeVerifier::branch_prepass) [op_sipush]:
Skip a short, not a byte.
[op_newarray]: Skip a byte, not a short.
* verify.cc (_Jv_BytecodeVerifier::get_type_val_for_signature):
Added `B' case.

View File

@ -1347,7 +1347,6 @@ private:
break;
case op_bipush:
case op_sipush:
case op_ldc:
case op_iload:
case op_lload:
@ -1361,9 +1360,11 @@ private:
case op_astore:
case op_arraylength:
case op_ret:
case op_newarray:
get_byte ();
break;
case op_sipush:
case op_ldc_w:
case op_ldc2_w:
case op_getstatic:
@ -1371,7 +1372,6 @@ private:
case op_putfield:
case op_putstatic:
case op_new:
case op_newarray:
case op_anewarray:
case op_instanceof:
case op_checkcast: