From: chiba Date: Thu, 2 Jul 2009 15:45:22 +0000 (+0000) Subject: fixed JASSIST-86 X-Git-Tag: rel_3_17_1_ga~161 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=05b78b167fba18b6e2904ee3d5cbb7024931a130;p=javassist.git fixed JASSIST-86 git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@486 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java index 9f17aa8b..8bfca0c8 100644 --- a/src/main/javassist/CtClass.java +++ b/src/main/javassist/CtClass.java @@ -410,7 +410,7 @@ public abstract class CtClass { * *

This method may return null. */ - public Collection getRefClasses() { + public synchronized Collection getRefClasses() { ClassFile cf = getClassFile2(); if (cf != null) { ClassMap cm = new ClassMap() {