0
我需要刪除字段在類文件中使用ASM,但是我無法找到任何工作,Java如何使用ASM刪除字段?
for(FieldNode field : classNode.fields) {
if(field.name.equals("max") && field.value.equals(30)) {
classNode.fields.remove(field);
System.out.println("***DELETED " + field.name + " ***");
}
}
它給了我一個Exeption: DELETED最大 java.util.ConcurrentModificationException
參見[這裏](https://stackoverflow.com/a/223929/5128464)... – vlp