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

Loading…
Cancel
Save