[Issue 251] 5.0 Lock Support

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Issue 251] 5.0 Lock Support

reden
https://glazedlists.dev.java.net/issues/show_bug.cgi?id=251






------- Additional comments from [hidden email] Tue Jul 26 02:58:17 +0000 2005 -------
Middle section above is missing an "if" block:


                // If there's no user-defined class...
                if (jse5_lock_factory == null) {
                        try {
                                // See if we can find the 5.0 lock class
                                Class.forName("java.util.concurrent.locks.ReentrantReadWriteLock");

                                // If so, see if we can load the 5.0 LockFactory class
                                jse5_lock_factory = (LockFactory) Class.forName(
                                        "ca.odell.glazedlists.util.concurrent.JSE5LockFactory").newInstance();
                        }
                        catch (Exception ex) {} // ignore
                        catch (NoClassDefFoundError er) {} // ignore
                }

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...