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

6945219: minor SA fixes Reviewed-by: twisti
author never
date Tue, 20 Apr 2010 13:26:33 -0700
parents bd02caa94611
children c18cbe5936b8
comparison
equal deleted inserted replaced
1384:c544d979f886 1385:bc32f286fae0
1 /* 1 /*
2 * Copyright 2002-2009 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 2002-2010 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
236 if (DEBUG) debugMessage("CP[" + ci + "] = class " + s); 236 if (DEBUG) debugMessage("CP[" + ci + "] = class " + s);
237 break; 237 break;
238 } 238 }
239 239
240 // case JVM_CONSTANT_ClassIndex: 240 // case JVM_CONSTANT_ClassIndex:
241 case JVM_CONSTANT_UnresolvedClassInError:
241 case JVM_CONSTANT_UnresolvedClass: { 242 case JVM_CONSTANT_UnresolvedClass: {
242 dos.writeByte(JVM_CONSTANT_Class); 243 dos.writeByte(JVM_CONSTANT_Class);
243 String klassName = cpool.getSymbolAt(ci).asString(); 244 String klassName = cpool.getSymbolAt(ci).asString();
244 245
245 Short s = (Short) utf8ToIndex.get(klassName); 246 Short s = (Short) utf8ToIndex.get(klassName);
294 dos.writeShort(signatureIndex); 295 dos.writeShort(signatureIndex);
295 if (DEBUG) debugMessage("CP[" + ci + "] = N&T name = " + nameIndex 296 if (DEBUG) debugMessage("CP[" + ci + "] = N&T name = " + nameIndex
296 + ", type = " + signatureIndex); 297 + ", type = " + signatureIndex);
297 break; 298 break;
298 } 299 }
300 default:
301 throw new InternalError("Unknown tag: " + cpConstType);
299 } // switch 302 } // switch
300 } 303 }
301 } 304 }
302 305
303 protected void writeClassAccessFlags() throws IOException { 306 protected void writeClassAccessFlags() throws IOException {