/AsmDemo

Primary LanguageJava

ASM工具使用示例

  1. 运行Main,调用Account类的delete方法,控制台会打印"delete success..."
  2. 运行NewAccountCreator,修改Account.class文件在delete方法中加入权限判断
  3. 再运行Main,控制台会打印"security check...\ndelete success..."