I need to Delete a field In a Class file Using ASM, But im not able to Find anything that works,
for(FieldNode field : classNode.fields) {
if(field.name.equals("max") && field.value.equals(30)) {
classNode.fields.remove(field);
System.out.println("***DELETED " + field.name + " ***");
}
}
Its giving me a Exeption:
DELETED max
java.util.ConcurrentModificationException