Skip to content

Commit

Permalink
Merge pull request #18 from saeg/feature/enable-modified-system-class…
Browse files Browse the repository at this point in the history
…-runtime

Enable `ModifiedSystemClassRuntime` by default
  • Loading branch information
andrioli authored Sep 10, 2021
2 parents 1abc38e + edecbca commit 3aea657
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ private PreMain() {
}

public static void premain(final String opts, final Instrumentation inst) throws Exception {
final IRuntime runtime = Boolean.getBoolean("badua.experimental.ModifiedSystemClassRuntime")
? ModifiedSystemClassRuntime.createFor(inst, "java/lang/UnknownError")
: new RT();

final IRuntime runtime = Boolean.getBoolean("badua.experimental.RT") ? new RT()
: ModifiedSystemClassRuntime.createFor(inst, "java/lang/UnknownError");
runtime.startup(Agent.getInstance().getData());
inst.addTransformer(new CoverageTransformer(runtime, PreMain.class.getPackage().getName()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import br.usp.each.saeg.badua.core.runtime.RuntimeData;
import br.usp.each.saeg.badua.core.runtime.StaticAccessGenerator;

@Deprecated
public final class RT extends StaticAccessGenerator implements IRuntime {

private static RuntimeData DATA;
Expand Down

0 comments on commit 3aea657

Please sign in to comment.