We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event Listner 定义 String classAnno = "org.springframework.web.bind.annotation.RestController"; String behaviorAnno = "org.springframework.web.bind.annotation.RequestMapping"; EventWatcher eventWatcher = new EventWatchBuilder(moduleEventWatcher) .onAnyClass() .hasAnnotationTypes(classAnno) .onAnyBehavior() .hasAnnotationTypes(behaviorAnno)
.onAnyClass() .hasAnnotationTypes("org.springframework.stereotype.Service") .hasAnnotationTypes("org.springframework.stereotype.Component") .hasAnnotationTypes("org.springframework.stereotype.Repository") .hasAnnotationTypes("org.springframework.stereotype.Controller") .onAnyBehavior() .withAccess(AccessFlags.ACF_PUBLIC) .onWatch(eventListener, BEFORE, RETURN, THROWS);
其中一个方法 getMasterNewsInfo , 只有before 和 throw, 没有 return . 只有这一个方法有问题, 其余方法加强都正常
加强后的class 信息, 见附件 c.txt
The text was updated successfully, but these errors were encountered:
@Override protected void onMethodExit(final int opcode) { if (!isThrow(opcode) && !getCodeLock().isLock()) {
这里 getCodeLock().isLock() 是true, 所以没有进行加强, 原因不明, 请问 @oldmanpushcart 这是正常的吗?
Sorry, something went wrong.
@tangtangsara 很厉害,看那么深。这里getCodeLock().isLock()并不正常,理论上不可能存在。但因为这个类和你们的业务绑定很深,所以我一时间无法重现这个问题。
我自己也尝试过一些特殊的方法编写组合,但都无法复现你所看到的情况。所以你能否能提供一个最小可重试问题的类,我也好排查。
oldmanpushcart
No branches or pull requests
Event Listner 定义
String classAnno = "org.springframework.web.bind.annotation.RestController";
String behaviorAnno = "org.springframework.web.bind.annotation.RequestMapping";
EventWatcher eventWatcher = new EventWatchBuilder(moduleEventWatcher)
.onAnyClass()
.hasAnnotationTypes(classAnno)
.onAnyBehavior()
.hasAnnotationTypes(behaviorAnno)
其中一个方法 getMasterNewsInfo , 只有before 和 throw, 没有 return .
只有这一个方法有问题, 其余方法加强都正常
加强后的class 信息, 见附件
c.txt
The text was updated successfully, but these errors were encountered: