Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #6624

Re: static synchronized method

From Alice <quaxx1108@example.com>
Newsgroups comp.lang.java.programmer
Subject Re: static synchronized method
Date 2011-07-27 22:04 -0400
Organization Ain't got none sorry
Message-ID <j0qg40$mdp$1@speranza.aioe.org> (permalink)
References <0e62fc71-0ae6-408c-9e93-c43b3b7c56f0@28g2000pry.googlegroups.com> <j0p4ag$h3a$1@dont-email.me> <j0p8e9$m28$1@speranza.aioe.org> <5e8aeead-b963-4c96-a757-f1c22f719462@r5g2000prf.googlegroups.com>

Show all headers | View raw


On 27/07/2011 5:06 PM, lewbloch wrote:
> Henderson wrote:
>> The main concern, instead, is invariant violation when the design
>> expects a singleton of some sort: a single global registry of some sort,
>> a single global interning cache, a single INSTANCE reference to a single
>> singleton instance such as what java.awt.Toolkit.getDefaultToolkit()
>> returns, etc.; if there are suddenly two of a thing like that when the
>> design calls for exactly one, then problems can ensue, but problems that
>> have nothing to do with concurrency and data races.
>
> Classloaders define a sort of namespace wherein the "same" class from
> two different classloaders is actually two different classes.  Like so
> much in Java, this is a very powerful technique that can mess you up a
> lot if you're careless or don't fully grasp the consequences.

Classic pontification.

> Classloader magic is one of those "here there be dragons" regions of
> Java.  I've dabbled in it, but I am Dukas' Sorcerers Apprentice when
> it comes to their use.

Classic pontification.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

static synchronized method Ross <rossclement@gmail.com> - 2011-07-27 06:31 -0700
  Re: static synchronized method markspace <-@.> - 2011-07-27 06:37 -0700
    Re: static synchronized method Henderson <h1@g1.f1> - 2011-07-27 10:47 -0400
      Re: static synchronized method lewbloch <lewbloch@gmail.com> - 2011-07-27 14:06 -0700
        Re: static synchronized method Alice <quaxx1108@example.com> - 2011-07-27 22:04 -0400
          Re: static synchronized method lewbloch <lewbloch@gmail.com> - 2011-07-29 09:28 -0700
            Re: static synchronized method Alice <quaxx1108@example.com> - 2011-07-29 18:01 -0400
      Re: static synchronized method Ross <rossclement@gmail.com> - 2011-07-28 03:09 -0700
        Re: static synchronized method lewbloch <lewbloch@gmail.com> - 2011-07-29 09:29 -0700
  Re: static synchronized method Roedy Green <see_website@mindprod.com.invalid> - 2011-07-27 13:43 -0700

csiph-web