2002-12-11 Tom Tromey <tromey@redhat.com>
+ * java/lang/ClassLoader.java (findLoadedClass): Now synchronized.
+
* java/lang/ClassLoader.java (loadedClasses): New field.
(defineClass): Fixed indentation. Put new class in
loadedClasses.
+ "are meaningless");
// as per 5.3.5.1
- if (name != null && findLoadedClass (name) != null)
+ if (name != null && findLoadedClass (name) != null)
throw new java.lang.LinkageError ("class "
+ name
+ " already loaded");
* @param name class to find.
* @return the class loaded, or null.
*/
- protected final Class findLoadedClass(String name)
+ protected final synchronized Class findLoadedClass(String name)
{
return (Class) loadedClasses.get(name);
}