The observant reader might have seen the wrong extends clause for the
Object1 test class in the second unit test. This doesn't affect the
memory allocations though. I removed it and the test yields the same
values for object sizes.
Martijn
On 11/2/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
An other test:
public class MemTest extends TestCase
{
Object[] foo = new Object[1000000];
public static class Object0 {
}
public static class Object1 extends Object0 {
boolean bool1;
}
--
<a href="http://www.thebeststuffintheworld.com/vote_for/wicket">Vote</a>
for <a href="http://www.thebeststuffintheworld.com/stuff/wicket">Wicket</a>
at the <a href="http://www.thebeststuffintheworld.com/">Best Stuff in
the World!</a>