@@ -30,6 +30,10 @@ import org.objectweb.asm.Opcodes;
|
||||
*/
|
||||
public interface Constants extends Opcodes {
|
||||
|
||||
public static final int preInvokeSpecial = 0;
|
||||
|
||||
public static final int postInvokeSpecial = 1;
|
||||
|
||||
public static final Integer DEFAULT_INT = Integer.valueOf(0);
|
||||
|
||||
public static final Byte DEFAULT_BYTE = Byte.valueOf((byte) 0);
|
||||
|
||||
@@ -25,10 +25,6 @@ import org.objectweb.asm.MethodVisitor;
|
||||
*/
|
||||
class ConstructorCopier extends MethodVisitor implements Constants {
|
||||
|
||||
private final static int preInvokeSpecial = 0;
|
||||
|
||||
private final static int postInvokeSpecial = 1;
|
||||
|
||||
// It is important to know when an INVOKESPECIAL is hit, whether it is our actual one that delegates to the super or just
|
||||
// one being invoked due to some early object construction prior to the real INVOKESPECIAL running. By tracking
|
||||
// how many unitialized objects there are (count the NEWs) and how many INVOKESPECIALs have occurred, it is possible
|
||||
|
||||
Reference in New Issue
Block a user