aboutsummaryrefslogtreecommitdiff
path: root/src_eclipseagent/lombok/agent
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-06-09 20:55:44 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-06-09 20:55:44 +0200
commit2e80283a673bc1bf68dc59b74e03180313c44a3d (patch)
tree2630f2a7d34538c3709440d88f0da6b0d5aa45a1 /src_eclipseagent/lombok/agent
parent41fb7cba62b543243c784757d1af4e05824ddc4e (diff)
downloadlombok-2e80283a673bc1bf68dc59b74e03180313c44a3d.tar.gz
lombok-2e80283a673bc1bf68dc59b74e03180313c44a3d.tar.bz2
lombok-2e80283a673bc1bf68dc59b74e03180313c44a3d.zip
Major bugfix.
Diffstat (limited to 'src_eclipseagent/lombok/agent')
-rw-r--r--src_eclipseagent/lombok/agent/eclipse/EclipseParserTransformer.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src_eclipseagent/lombok/agent/eclipse/EclipseParserTransformer.java b/src_eclipseagent/lombok/agent/eclipse/EclipseParserTransformer.java
index 803d5d66..c0e64061 100644
--- a/src_eclipseagent/lombok/agent/eclipse/EclipseParserTransformer.java
+++ b/src_eclipseagent/lombok/agent/eclipse/EclipseParserTransformer.java
@@ -1,6 +1,7 @@
package lombok.agent.eclipse;
import java.lang.reflect.Constructor;
+import java.lang.reflect.InvocationTargetException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
@@ -71,9 +72,10 @@ class EclipseParserTransformer {
Constructor<? extends MethodVisitor> c = targetVisitorClass.getDeclaredConstructor(MethodVisitor.class);
c.setAccessible(true);
return c.newInstance(writerVisitor);
+ } catch ( InvocationTargetException e ) {
+ throw sneakyThrow(e.getCause());
} catch ( Exception e ) {
//NoSuchMethodException: We know they exist.
- //InvocationTargetException: No checked exceptions thrown by any compilers.
//IllegalAccessException: We called setAccessible.
//InstantiationException: None of these classes are abstract.
throw sneakyThrow(e);
@@ -113,6 +115,7 @@ class EclipseParserTransformer {
super.visitMethodInsn(Opcodes.INVOKESTATIC, TARGET_STATIC_CLASS,
staticMethodName, TARGET_STATIC_METHOD_DESC);
}
+ super.visitInsn(opcode);
}
}