comparison agent/src/share/classes/sun/jvm/hotspot/tools/jcore/ClassWriter.java @ 1917:f42a2f0c16bb

6996563: 6984311 changes forgot to update vmStructs.cpp for new field _operands Summary: Add missing line to vmStructs. Also fix bug with class dumper. Reviewed-by: twisti, kvn
author jrose
date Fri, 05 Nov 2010 12:18:30 -0700
parents 3b2dea75431e
children dad31fc330cd
comparison
equal deleted inserted replaced
1916:e62345fd6a46 1917:f42a2f0c16bb
301 } 301 }
302 302
303 case JVM_CONSTANT_MethodHandle: { 303 case JVM_CONSTANT_MethodHandle: {
304 dos.writeByte(cpConstType); 304 dos.writeByte(cpConstType);
305 int value = cpool.getIntAt(ci); 305 int value = cpool.getIntAt(ci);
306 short bootstrapMethodIndex = (short) extractLowShortFromInt(value); 306 byte refKind = (byte) extractLowShortFromInt(value);
307 short nameAndTypeIndex = (short) extractHighShortFromInt(value); 307 short memberIndex = (short) extractHighShortFromInt(value);
308 dos.writeShort(bootstrapMethodIndex); 308 dos.writeByte(refKind);
309 dos.writeShort(nameAndTypeIndex); 309 dos.writeShort(memberIndex);
310 if (DEBUG) debugMessage("CP[" + ci + "] = indy BSM = " + 310 if (DEBUG) debugMessage("CP[" + ci + "] = MH kind = " +
311 bootstrapMethodIndex + ", N&T = " + nameAndTypeIndex); 311 refKind + ", mem = " + memberIndex);
312 break; 312 break;
313 } 313 }
314 314
315 case JVM_CONSTANT_MethodType: { 315 case JVM_CONSTANT_MethodType: {
316 dos.writeByte(cpConstType); 316 dos.writeByte(cpConstType);