Community
Participate
Working Groups
jdt.core from HEAD From the tests I performed, it looks like the value set for args_size for the enumeration constructor is always 1 more that what it should be. It doesn't seems to be a real problem most of the time, but the VM complains (loudly) when the stack size is less than the args size. public enum TestEnum { a(1); TestEnum(int i) { } } In this case, args_size is set to 4, it should be 3 (1 specified arg + 2 'magic' ones). Sun 1.5 VM throws an ClassFormatError when you try to load this class.
Codestream forgot to consider enum constructor scenario when initializing maxLocals. Added regression test: EnumTest#test046. Fixed
Verified in 200412140800