[concurrency-interest] Object finalization

Bob Lee crazybob at crazybob.org
Sun May 13 17:54:06 EDT 2012

On Sun, May 13, 2012 at 2:41 PM, Vitaly Davidovich <vitalyd at gmail.com>wrote:

> I am unclear whether the original question is specifically about
> reachability of a and b from the constructor or whether the constructor was
> shown to us to indicate that a and b are never null after construction
> (assuming asserts are enabled).  If it's the former, your answer is correct
> (that's what I meant by saying not sure if your reply was answering the
> question).  If it's the latter, then I'm pretty sure my response is correct
Again, according the JLS, you're incorrect. "a" and "b" will be non-null
when SomeService.finalize() executes. Why would you think otherwise?

Square is hiring! <https://squareup.com/jobs>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20120513/187c5bcc/attachment.html>

More information about the Concurrency-interest mailing list