diff --git a/README.md b/README.md index 5369dcd..a3e6b37 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,12 @@ methods and fields. * Inject try-catch-finally +* Inject assertions + +*A caveat regarding assert-statements: the compiler synthesizes a static final field named `$assertionsDisabled`, so if a target +class declares a static field with this name and does not declare any assertions in its code, loading of the field may already +be done in static initialization or field declaration, preventing assertions from functioning as intended for injected code.* + ### TODO * Better tests diff --git a/src/dev/w1zzrd/asm/Combine.java b/src/dev/w1zzrd/asm/Combine.java index bfb7eb6..2bae288 100644 --- a/src/dev/w1zzrd/asm/Combine.java +++ b/src/dev/w1zzrd/asm/Combine.java @@ -1,6 +1,5 @@ package dev.w1zzrd.asm; -import com.sun.org.apache.bcel.internal.generic.GotoInstruction; import dev.w1zzrd.asm.analysis.AsmAnnotation; import dev.w1zzrd.asm.exception.MethodNodeResolutionException; import dev.w1zzrd.asm.exception.SignatureCheckException;