-
Bug
-
Resolution: Not an Issue
-
P2
-
None
-
1.2.0
-
sparc
-
solaris_2.6
allan.jacobs@Eng 1998-03-24
ObjectStreamClass is not thread-safe. The other io classes seem to
be OK.
Only the static variables that are set and used in thread-unsafe
methods are listed. Only methods that are thread-unsafe are listed.
/**********************************************************************/
java/io/ObjectStreamClass.java
Variable: descriptorFor
Set and used in findDescriptorFor.
The method insertDescriptorFor used descriptorFor and also calls
The method lookupInternal calls findDescriptorFor from a
synchronized block.
The method insertDescriptorFor calls findDescriptorFor from a
unsynchronized block.
The constructor for ObjectStreamClass calls insertDescriptorFor
from an unsynchronized block. So, using this method may cause
a thread-unsafe set of descriptorFor in the routine
findDescriptorFor.