alibaba / alibaba/testable-mock
Mock静态方法报错VerifyError
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
有些静态方法会报错,有些不会,不知道该怎么描述。
增加-noverify运行参数后就不会报错了,但是现在不允许增加运行参数,所以有什么替代方法吗?
以下是报错细节:
java.lang.VerifyError: Inconsistent stackmap frames at branch target 137
Exception Details:
。。。
@131: goto
Reason:
Current frame's stack size doesn't match stackmap.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure for the affected static methods with and without the -noverify argument, recording the complete VerifyError details. Start by tracing the mock transformation and bytecode verification around the reported branch target and stackmap mismatch. Done means the affected methods run without -noverify and the existing mock behavior remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100