Skip to content

Commit bd48e75

Browse files
committed
Add NOP padding in case of empty return handler for delegation, which would also break use of the JDK class writer.
1 parent e53395f commit bd48e75

File tree

1 file changed

+1
-0
lines changed
  • byte-buddy-dep/src/main/java/net/bytebuddy/asm

1 file changed

+1
-0
lines changed

byte-buddy-dep/src/main/java/net/bytebuddy/asm/Advice.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14319,6 +14319,7 @@ public boolean isValid() {
1431914319
public Size apply(MethodVisitor methodVisitor, Context implementationContext) {
1432014320
Label label = new Label();
1432114321
Size size = dispatcher.apply(methodVisitor, offset, label).aggregate(stackManipulation.apply(methodVisitor, implementationContext));
14322+
methodVisitor.visitInsn(Opcodes.NOP);
1432214323
methodVisitor.visitLabel(label);
1432314324
stackMapFrameHandler.injectIntermediateFrame(methodVisitor, Collections.<TypeDescription>emptyList());
1432414325
methodVisitor.visitInsn(Opcodes.NOP);

0 commit comments

Comments
 (0)