Code in constructor before this or super in generated class file while
using code coverage tool
I am using google code pro Analatics to measure code coverage.
Source code
public class StackArray implements Stack { private int top; private T[]
elements;
public StackArray(Class<T> type, int size) {
top = -1;
elements = (T[]) Array.newInstance(type, size);
}
//Other stack related methods
}
Generated class file
import com.vladium.emma.rt.RT; import java.lang.reflect.Array;
// Referenced classes of package ds.stack: // Stack
public class StackArray implements Stack {
private int top;
private Object elements[];
private static final int $VRc[][]; /* synthetic field */
private static final long serialVersionUID = 0x927be770ed420794L; /*
synthetic field */
public StackArray(Class type, int size)
{
int ai[] = ($VRc != null ? $VRc : $VRi())[0];
super();
top = -1;
elements = (Object[])Array.newInstance(type, size);
ai[0] = ai[0] + 1;
}
}
My question is how is this line permissible in constructor before this or
super
int ai[] = ($VRc != null ? $VRc : $VRi())[0];
No comments:
Post a Comment