Open sczyh30 opened 1 year ago
NOTE: 我们的 JDK 11/17 的用例需要在不加 --add-opens
参数的情况下跑通。
Our test cases should pass without --add-opens
args under JDK 11/17.
NOTE: 我们的 JDK 11/17 的用例需要在不加
--add-opens
参数的情况下跑通。Our test cases should pass without
--add-opens
args under JDK 11/17.
actually, the latest version of powermock
is 2.0.9 in 2020, so if we wank to support jdk 17 without using --add-opens
args, we may rewrite all cases used powermock
NOTE: 我们的 JDK 11/17 的用例需要在不加
--add-opens
参数的情况下跑通。 Our test cases should pass without--add-opens
args under JDK 11/17.actually, the latest version of
powermock
is 2.0.9 in 2020, so if we wank to support jdk 17 without using--add-opens
args, we may rewrite all cases usedpowermock
Is it possible if we replace powermock
with other available mock libs? We mainly used it for mock static methods (e.g. methods in System
).
NOTE: 我们的 JDK 11/17 的用例需要在不加
--add-opens
参数的情况下跑通。 Our test cases should pass without--add-opens
args under JDK 11/17.actually, the latest version of
powermock
is 2.0.9 in 2020, so if we wank to support jdk 17 without using--add-opens
args, we may rewrite all cases usedpowermock
Is it possible if we replace
powermock
with other available mock libs? We mainly used it for mock static methods (e.g. methods inSystem
).
not only the powermock
, there may have some other sdk like this. It's seems a bit tough.
Issue Description
Type: bug report
Describe what happened (or what feature you want)
The test cases will fail under JDK 17, due to JDK-compatibility of some test frameworks (e.g. PowerMock).
JDK 17 下测试用例会失败,部分原因是我们测试框架不支持 JDK 17 导致的(可能是版本太低,或确实不支持)。欢迎社区修复解决。
Some error messages:
Tell us your environment
JDK 17, Sentinel 2.0.0-SNAPSHOT