Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4430171

use of static field for temporary variable is thread-unsafe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta
    • sparc
    • solaris_2.6

      LdapSchemaParser.java has the definition
       
         protected static String currentName = null;

      This field is used by static methods in the LdapSchemaParser class
      as a temporary variable to hold the name of the entry just parsed.
      This is thread-unsafe. If more than one thread in the VM attempts
      to read an LDAP schema, then the in-memory representation of one of
      both schemas might become corrupted.

            rleesunw Rosanna Lee (Inactive)
            rleesunw Rosanna Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: