使用 lombok 时,我们的带有 cdi、microprofile-config、jaxrs 和 undertow 依赖项的 Torntail 2.3.0 应用程序失败@Builder
。
2019-02-04 09:36:27,544 错误 [stderr] (main) 引起:java.lang.UnsupportedOperationException 2019-02-04 09:36:27,544 org.objectweb.asm.ClassVisitor.visitNestHostExperimental (ClassVisitor.java:158) 处的错误 [stderr] (main) 2019-02-04 09:36:27,544 org.objectweb.asm.ClassReader.accept(ClassReader.java:541) 处的错误 [stderr] (main) 2019-02-04 09:36:27,544 org.objectweb.asm.ClassReader.accept(ClassReader.java:391) 处的错误 [stderr] (main) 2019-02-04 09:36:27,545 错误 [stderr] (main) at org.wildfly.swarm.jaxrs.internal.JAXRSArchiveImpl.isJAXRS(JAXRSArchiveImpl.java:119) 2019-02-04 09:36:27,545 错误 [stderr] (main) at org.wildfly.swarm.jaxrs.internal.JAXRSArchiveImpl.isJAXRS(JAXRSArchiveImpl.java:96) 2019-02-04 09:36:27,545 错误 [stderr] (main) at org.wildfly.swarm.jaxrs.JAXRSArchive.isJAXRS(JAXRSArchive.java:55) 2019-02-04 09:36:27,545 org.wildfly.swarm.jaxrs.internal.DefaultJAXRSWarDeploymentFactory.create(DefaultJAXRSWarDeploymentFactory.java:46) 的错误 [stderr] (main) 2019-02-04 09:36:27,545 错误 [stderr] (main) at org.wildfly.swarm.container.runtime.deployments.DefaultDeploymentCreator.createDefaultDeployment(DefaultDeploymentCreator.java:69)
这可能是由于 lombok 生成的 Builder 内部类中缺少空构造函数。有什么解决方法吗?