equal
deleted
inserted
replaced
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) { |