db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oystein.Grov...@Sun.COM (Øystein Grøvlen)
Subject Re: [jira] Commented: (DERBY-230) "Schema already exists" when creating a table
Date Mon, 25 Apr 2005 08:36:55 GMT
>>>>> "DJD" == Daniel John Debrunner <djd@debrunners.com> writes:

    DJD> Thanks. The "Unless ... holding multiple locks.. " part is a little
    DJD> troubling. And exactly what is meant by 'Class objects', as while you
    DJD> can have a synchronized static method, I don't see how you could have a
    DJD> block synchronized in the same way.

You can get the class object of class C by "C.class".  Hence, you can
synchronize on the static lock of a class C, this way:

        synchronized(C.class) { /* synchronized block */ }


View raw message