fengyuwuzu526

Results 1 issues of fengyuwuzu526

如果我需要替换的方法是抛异常的,那么就无法替换,或者插入log等。 比如我想创建文件方法前后添加log 方法如下 public boolean createNewFile() throws IOException { SecurityManager security = System.getSecurityManager(); if (security != null) security.checkWrite(path); if (isInvalid()) { throw new IOException("Invalid file path"); } return fs.createFileExclusively(path); }...