Fix for ASM issue 317555

Issue: SPR-12957
(cherry picked from commit 2c043ec)
This commit is contained in:
Juergen Hoeller 2015-05-07 15:41:24 +02:00
parent 6a7aab02aa
commit 5b10575ce5
1 changed files with 7 additions and 5 deletions

View File

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