A common pitfall, similar to not checking for exceptions, is to fail to check the return value and for the code to proceed on the assumption that the call was successful.
与未检测异常相似,这也存在一个缺陷,即代码未检测返回值却假定调用成功而继续运行。
AspectJ's ability to "soften" exceptions for advised methods can be useful, and does not adhere to the standard method exception-checking semantics.
AspectJ拥有把被通知方法的异常“软化”的能力,这很有用,但是不符合方法异常检测的标准语义。
AspectJ's ability to "soften" exceptions for advised methods can be useful, and does not adhere to the standard method exception-checking semantics.
AspectJ拥有把被通知方法的异常“软化”的能力,这很有用,但是不符合方法异常检测的标准语义。
应用推荐