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


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

Re: static synchronized method

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!postnews.google.com!d8g2000prf.googlegroups.com!not-for-mail
From lewbloch <lewbloch@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: static synchronized method
Date Fri, 29 Jul 2011 09:29:54 -0700 (PDT)
Organization http://groups.google.com
Lines 16
Message-ID <cb53948b-857c-456f-a511-e3962041587b@d8g2000prf.googlegroups.com> (permalink)
References <0e62fc71-0ae6-408c-9e93-c43b3b7c56f0@28g2000pry.googlegroups.com> <j0p4ag$h3a$1@dont-email.me> <j0p8e9$m28$1@speranza.aioe.org> <858b94be-c13e-47fd-9365-b05e8ba9b29e@q15g2000yqk.googlegroups.com>
NNTP-Posting-Host 216.239.45.22
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Trace posting.google.com 1311957373 19068 127.0.0.1 (29 Jul 2011 16:36:13 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Fri, 29 Jul 2011 16:36:13 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info d8g2000prf.googlegroups.com; posting-host=216.239.45.22; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-Header-Order ASELCHRU
X-HTTP-UserAgent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1,gzip(gfe)
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6660

Show key headers only | View raw


On Jul 28, 3:09 am, Ross <rossclem...@gmail.com> wrote:
> Thanks. The program just uses the standard ClassLoader, and doesn't
> even have that many classes.
>
> In the static synchronized method, a password file is being rewritten.
> If this program gets adopted long term, I'll be rewriting it to use a
> proper database, and data synchronisation issues will disappear. But
> "static synchronized" will do for the meantime.

Why do you want the method to be static?

It's not wrong, but an instance method would also work.  I'm
interested in the reasoning.

--
Lew

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