小编Par*_*ama的帖子

Java 更新到 17 版本后出现 CompletableFuture 的 java.lang.reflect.GenericSignatureFormatError

我已将我们公司应用程序的 Java 版本从 8 更新到 17。在本地计算机上,它在构建和运行时调用方面都运行良好。同样在 GitHub 上,它与 Junit 测试执行一起部署得很好。

问题是在我在 Heroku 上部署应用程序之后出现的。Heroku 构建成功,但在运行时,当我调用方法时,收到此错误:

"message": "Handler dispatch failed; nested exception is java.lang.reflect.GenericSignatureFormatError: Signature Parse error: expected a class type\n\tRemaining input: java/util/concurrent/CompletableFuture",
Run Code Online (Sandbox Code Playgroud)

它与java反射方法和方法的签名有关。我的控制器剩余方法返回一个 CompletableFuture 对象。CompletableFuture 有点不太好.........

java reflection heroku completable-future java-17

2
推荐指数
1
解决办法
2469
查看次数

标签 统计

completable-future ×1

heroku ×1

java ×1

java-17 ×1

reflection ×1