aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/bytecode/SneakyThrowsRemover.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/lombok/bytecode/SneakyThrowsRemover.java')
-rw-r--r--src/core/lombok/bytecode/SneakyThrowsRemover.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/lombok/bytecode/SneakyThrowsRemover.java b/src/core/lombok/bytecode/SneakyThrowsRemover.java
index 8143d860..c54495d4 100644
--- a/src/core/lombok/bytecode/SneakyThrowsRemover.java
+++ b/src/core/lombok/bytecode/SneakyThrowsRemover.java
@@ -61,7 +61,11 @@ public class SneakyThrowsRemover implements PostCompilerTransformation {
"(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;".equals(desc)) {
changesMade.set(true);
- super.visitInsn(Opcodes.ATHROW);
+ if (System.getProperty("lombok.debugAsmOnly", null) != null) {
+ super.visitMethodInsn(opcode, owner, name, desc); // DEBUG for issue 470!
+ } else {
+ super.visitInsn(Opcodes.ATHROW);
+ }
} else {
super.visitMethodInsn(opcode, owner, name, desc);
}