Mark Wielaard wrote:
Why would a compiler emit extra initialization code for default values for fields? Not that I object to removing them, but it looks like the compiler emits unnecessary code in this case.
One can construct torture cases where the semantics are different, for both static and instance fields, if some code change the field value before the initialization is assigned.
For exmple:
class Z { static int peek() { return j++; } static int i = peek(); static int j = 0; } -- --Per Bothner [EMAIL PROTECTED] http://per.bothner.com/
_______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/classpath