[concurrency-interest] New bug pattern, way to common

Jason Mehrens jason_mehrens at hotmail.com
Mon Mar 24 11:10:42 EDT 2008

I assume you were doing something like:
void fn(Object that) {
  synchronize(that.getClass()) {
and not:
void fn(Object that) {
  synchronize(this.getClass()) {
> Date: Sun, 23 Mar 2008 11:57:24 -0700> From: jdmarshall at gmail.com> To: concurrency-interest at cs.oswego.edu> Subject: Re: [concurrency-interest] New bug pattern, way to common> > I can only recall using synchronize(getClass()) willfully in one> scenario (a couple occasions), and that was when I was building tables> of metadata about classes.> > I don' tend to use class metadata in that manner anymore, so I haven't> used it in quite some time. But I bet plenty of frameworks still do.> Especially class manipulation kits, but I suspect Hibernate does as> well.
Watch “Cause Effect,” a show about real people making a real difference.  Learn more.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20080324/18ec1f17/attachment.html 

More information about the Concurrency-interest mailing list