]> source.dussan.org Git - javassist.git/commitdiff
fixed JASSIST-86
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Thu, 2 Jul 2009 15:45:22 +0000 (15:45 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Thu, 2 Jul 2009 15:45:22 +0000 (15:45 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@486 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/CtClass.java

index 9f17aa8b9eaa2e3e8bc059e328bd810d98828007..8bfca0c890740e4cf80f2d39298ba5fdf36462b1 100644 (file)
@@ -410,7 +410,7 @@ public abstract class CtClass {
      *
      * <p>This method may return <code>null</code>.
      */
-    public Collection getRefClasses() {
+    public synchronized Collection getRefClasses() {
         ClassFile cf = getClassFile2();
         if (cf != null) {
             ClassMap cm = new ClassMap() {