1.1 --- a/src/share/vm/prims/jvmtiClassFileReconstituter.cpp Tue Jun 01 11:48:33 2010 -0700 1.2 +++ b/src/share/vm/prims/jvmtiClassFileReconstituter.cpp Wed Jun 02 22:45:42 2010 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2005, 2009, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -638,7 +638,7 @@ 1.11 1.12 // length of bytecode (mnemonic + operands) 1.13 address bcp = bs.bcp(); 1.14 - int len = bs.next_bcp() - bcp; 1.15 + int len = bs.instruction_size(); 1.16 assert(len > 0, "length must be > 0"); 1.17 1.18 // copy the bytecodes