aboutsummaryrefslogtreecommitdiff
path: root/experimental/src
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-10-17 13:20:24 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-10-17 13:20:24 +0200
commite56d83869134d6eb679d06cd0f334dc51396bea8 (patch)
tree9c01a3612346268d6f980bff4a1ffdf9acbb5444 /experimental/src
parentea04b3ff14d5a6cf90a550eeb866aace02964b1d (diff)
downloadlombok-e56d83869134d6eb679d06cd0f334dc51396bea8.tar.gz
lombok-e56d83869134d6eb679d06cd0f334dc51396bea8.tar.bz2
lombok-e56d83869134d6eb679d06cd0f334dc51396bea8.zip
Fixes to the buildScripts, and disableCheckedExceptions now works.
Diffstat (limited to 'experimental/src')
-rw-r--r--experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java b/experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java
index deb4626f..8dc084ce 100644
--- a/experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java
+++ b/experimental/src/lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent.java
@@ -52,7 +52,7 @@ public class DisableCheckedExceptionsAgent extends AbstractProcessor {
this.processingEnv = null;
}
- new LiveInjector().injectSelf();
+ new LiveInjector().inject(LiveInjector.findPathJar(DisableCheckedExceptionsAgent.class));
}
/** Does nothing - we just wanted the init method so we can inject an agent. */
@@ -81,10 +81,9 @@ public class DisableCheckedExceptionsAgent extends AbstractProcessor {
sm.addScript(ScriptBuilder.exitEarly()
.target(new MethodTarget("com.sun.tools.javac.comp.Check", "isUnchecked",
"boolean", "com.sun.tools.javac.code.Symbol$ClassSymbol"))
- .transplant()
.decisionMethod(new Hook("lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent", "retTrue", "()Z"))
.valueMethod(new Hook("lombok/javac/disableCheckedExceptions/DisableCheckedExceptionsAgent", "retTrue", "()Z"))
- .build());
+ .insert().build());
}
public static boolean retTrue() {