diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-17 13:20:24 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-17 13:20:24 +0200 |
commit | e56d83869134d6eb679d06cd0f334dc51396bea8 (patch) | |
tree | 9c01a3612346268d6f980bff4a1ffdf9acbb5444 /experimental/src | |
parent | ea04b3ff14d5a6cf90a550eeb866aace02964b1d (diff) | |
download | lombok-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.java | 5 |
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() { |