【问题标题】:Illegal reflective class exception when running Cucumber运行 Cucumber 时出现非法反射类异常
【发布时间】:2021-08-06 10:48:22
【问题描述】:

每当我运行我的项目时,我都会收到这样的消息:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by cucumber.deps.com.thoughtworks.xstream.core.util.Fields (file:/C:/Users/admin/.m2/repository/info/cukes/cucumber-jvm-deps/1.0.5/cucumber-jvm-deps-1.0.5.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of cucumber.deps.com.thoughtworks.xstream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

我需要做什么?

【问题讨论】:

    标签: java cucumber


    【解决方案1】:

    您必须升级 Cucumber 才能使其与您使用的 Java 版本兼容。建议您一次执行一个主要版本。您可以在此处找到发行说明:

    https://github.com/cucumber/cucumber-jvm/tree/main/release-notes

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-17
      • 2023-03-06
      • 1970-01-01
      • 2019-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多