// Main() does getstatics of k.b and putstatics of l.b. K.set() does putstatics // of k.b; l.show() does getstatics of l.b. The idea is, you jit only // main. If the jit and the VM agree about the container size of a static // field of type byte, you get the right answers. If not, the test fails. class k
{ staticbyte b; staticint i = -129; staticvoid set()
{
b = (byte) i;
++i;
}
}
class l
{ staticbyte b; staticint i = -129; staticvoid show()
{
t064.goldChecker.println("l.b == " + b);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.