// Main() does getfields of k.b and putfields of l.b. K.set() does putfields // of k.b; l.show() does getfields 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
{ byte b; int i = -129; void set()
{
b = (byte) i;
++i;
}
}
class l
{ byte b; int i = -129; void show()
{
t065.goldChecker.println("lo.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.