Browse Source

Fix for ASM issue 317555

Issue: SPR-12957
pull/794/merge
Juergen Hoeller 11 years ago
parent
commit
2c043ec9d7
  1. 12
      spring-core/src/main/java/org/springframework/asm/MethodWriter.java

12
spring-core/src/main/java/org/springframework/asm/MethodWriter.java

@ -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

Loading…
Cancel
Save