All, On 9/15/15 3:07 PM, Christopher Schultz wrote: > In the above case, the reference "s" may for a short time be a reference > to an uninitialized object of type String. This can be problematic. > Imagine the psusdo-bytecode below generated by the compiler: > > 1: push s > 3: ifnull goto 8 > 5: goto X
This line should have of course been "goto 17" > 8: new java.lang.String > 10: dup > 11: store s > 13: push "foo" > 15: call java.lang.String.<init> ... and of course 17: push s 19: return Sorry for the sloppy (fake!) code. -chris
signature.asc
Description: OpenPGP digital signature