jdk/src/share/classes/com/sun/java/util/jar/pack/ConstantPool.java
changeset 16075 32c3bc19bba7
parent 12544 5768f2e096de
child 16107 110e24f9ad05
equal deleted inserted replaced
16074:97593512057a 16075:32c3bc19bba7
  1379             throw new AssertionError("bad tag group "+tag);
  1379             throw new AssertionError("bad tag group "+tag);
  1380         }
  1380         }
  1381 
  1381 
  1382         /** Index of all CP entries of a given tag and class. */
  1382         /** Index of all CP entries of a given tag and class. */
  1383         public Index getMemberIndex(byte tag, ClassEntry classRef) {
  1383         public Index getMemberIndex(byte tag, ClassEntry classRef) {
       
  1384             if (classRef == null)
       
  1385                 throw new RuntimeException("missing class reference for " + tagName(tag));
  1384             if (indexByTagAndClass == null)
  1386             if (indexByTagAndClass == null)
  1385                 indexByTagAndClass = new Index[CONSTANT_Limit][];
  1387                 indexByTagAndClass = new Index[CONSTANT_Limit][];
  1386             Index allClasses =  getIndexByTag(CONSTANT_Class);
  1388             Index allClasses =  getIndexByTag(CONSTANT_Class);
  1387             Index[] perClassIndexes = indexByTagAndClass[tag];
  1389             Index[] perClassIndexes = indexByTagAndClass[tag];
  1388             if (perClassIndexes == null) {
  1390             if (perClassIndexes == null) {