소스 검색

avoids ConcurrentModificationException in 3.23.1-GA reported in Issue #224.

tags/rel_3_23_2_ga
chibash 5 년 전
부모
커밋
0b2912e760
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/main/javassist/CtClassType.java

+ 2
- 2
src/main/javassist/CtClassType.java 파일 보기

@@ -1526,7 +1526,7 @@ class CtClassType extends CtClass {
ClassFile cf = getClassFile2();
ConstPool cp = cf.getConstPool();
List<MethodInfo> methods = cf.getMethods();
for (MethodInfo minfo:methods)
for (MethodInfo minfo: methods.toArray(new MethodInfo[methods.size()]))
converter.doit(this, minfo, cp);
}

@@ -1537,7 +1537,7 @@ class CtClassType extends CtClass {
checkModify();
ClassFile cf = getClassFile2();
List<MethodInfo> methods = cf.getMethods();
for (MethodInfo minfo:methods)
for (MethodInfo minfo: methods.toArray(new MethodInfo[methods.size()]))
editor.doit(this, minfo);
}


Loading…
취소
저장