【发布时间】:2022-09-26 13:30:07
【问题描述】:
我更改了我的源代码和 pom.xml 从 2.0.0-M5 升级到 2.0.0-M7。请注意,以下错误均未出现在 M5 中。该应用程序正在再次编译,但是当转到该应用程序时,它显示了一长串元模型验证错误,这些错误在 M5 中不存在
这发生在很多课程上。关于如何正确解决此问题的任何线索(目前我只能将它们注释掉)?
someClass#defaultXSomeMethod(): is public, but orphaned (was not picked up by the framework); reporting orphans, because the class is setup for member introspection, without enforcing annotations
以下情况发生在框架类和不属于域模型本身的库中的类上。我不知道发生了什么,也不知道如何解决这个问题。
Collection action parameter found without supporting choices or autoComplete facet. Class: org.apache.isis.applib.query.Query action: withRange parameter 0
然后这个:
Action method overloading is not allowed, yet javax.activation.MimeType has action(s) that have a the same member name: [match]
这是一个包含的库类,它用于解析作为域对象方法之一中的输入参数提供的 mimeType。它曾经在M5中工作。关于如何避免这种情况或解决它的任何线索?
请注意,我自己的 DomainObjects(不在 M5 中)也出现重载错误;我想解决办法是停止超载。
感谢您以正确的方式指出我的任何提示
-
在 2.0.0-M6 和 2.0.0-M7 中,我们使编程模型更加复杂,但也使元模型验证器更加严格。您可能最容易加入邮件列表,我们可以从那里邀请您加入我们的 slack 频道来帮助您解决这些问题。