Fix for ASM issue 317555

Issue: SPR-12957
This commit is contained in:
Juergen Hoeller 2015-05-07 15:41:24 +02:00
parent cb01f89a40
commit 2c043ec9d7
1 changed files with 7 additions and 5 deletions

View File

@ -2706,11 +2706,13 @@ class MethodWriter extends MethodVisitor {
l = l.successor; l = l.successor;
} }
// Update the offsets in the uninitialized types // Update the offsets in the uninitialized types
for (i = 0; i < cw.typeTable.length; ++i) { if (cw.typeTable != null) {
Item item = cw.typeTable[i]; for (i = 0; i < cw.typeTable.length; ++i) {
if (item != null && item.type == ClassWriter.TYPE_UNINIT) { Item item = cw.typeTable[i];
item.intVal = getNewOffset(allIndexes, allSizes, 0, if (item != null && item.type == ClassWriter.TYPE_UNINIT) {
item.intVal); item.intVal = getNewOffset(allIndexes, allSizes, 0,
item.intVal);
}
} }
} }
// The stack map frames are not serialized yet, so we don't need // The stack map frames are not serialized yet, so we don't need