Class JDKUtils


  • public class JDKUtils
    extends java.lang.Object
    Internal utilities for identifying the JDK version, used in the rare cases that we are patching around JDK bugs.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean JDK_1_5
      Is the running JVM JDK 1.5?
    • Constructor Summary

      Constructors 
      Constructor Description
      JDKUtils()  
    • Field Detail

      • JDK_1_5

        public static final boolean JDK_1_5
        Is the running JVM JDK 1.5?
    • Method Detail

      • createLockForThreadLocalCreation

        public static java.util.concurrent.locks.Lock createLockForThreadLocalCreation()
        Deprecated.
        Deprecated in 5.4 with no replacement.
        Returns a ReentrantLock used to serialize access to the construction of a thread local; this is only needed under JDK 1.5 (due to a bug in the JDK); for other JDKs, a DummyLock is returned.
        Returns:
        lock to use when creating
        Since:
        5.3