IKVM 复杂自定义类型在重新映射到属性时出错!

发布于 2024-10-12 00:35:13 字数 2653 浏览 4 评论 0原文

我使用上面的内容并写了这个:

<class name="umple.pts.domain.coreEntities.Stop">
    <property name="StopName" sig="()Ljava.lang.String;">
        <getter name="getName" sig="()Ljava.lang.String;" />
        <setter name="setName" sig="(Ljava.lang.String;)Z" />
    </property>
    <property name="StopId" sig="()I">
        <getter name="getStopId" sig="()I" />
        <setter name="setStopId" sig="(I)V" />
    </property>
</class>
<class name="umple.pts.domain.coreEntities.Line">
    <property name="LineName" sig="()Ljava.lang.String;">
        <getter name="getName" sig="()Ljava.lang.String;" />
        <setter name="setName" sig="(Ljava.lang.String;)V" />
    </property>
    <property name="LineId" sig="()I">
        <getter name="getLineId" sig="()I" />
        <setter name="setLineId" sig="(I)V" />
    </property>
    <property name="FirstEndStop" sig="()umple.pts.domain.coreEntities.Stop;">
        <getter name="getFirstEndStop" sig="()umple.pts.domain.coreEntities.Stop;" />
        <setter name="setFirstEndStop" sig="(umple.pts.domain.coreEntities.Stop;)Z" 

>>

>>

>>

生成 dll 文件时出现错误:

D:\PTS\PTS_SVN\Libraries\ikvm-0.44.0.5\bin>ikvmc -remap:map.xml -target:library PTSDomain.jar 注意 IKVMC0002:输出文件是“PTSDomain.dll” 错误:无效的属性签名“()umple.pts.domain.coreEntities.Stop;”对物 属性 umple.pts.domain.coreEntities.Line.FirstEndStop 的 ap 文件 错误:无效的属性 getter 签名“()umple.pts.domain.coreEntities.Stop;” 在属性 umple.pts.domain.coreEntities.Line.FirstEndStop 的重映射文件中 错误:属性设置器签名无效 '(umple.pts.domain.coreEntities.Stop;)Z ' 在属性 umple.pts.domain.coreEntities.Line.FirstEndStop 的重映射文件中 错误:无效的属性签名“()umple.pts.domain.coreEntities.Stop;”对物 属性 umple.pts.domain.coreEntities.Line.SecondEndStop 的 ap 文件 错误:无效的属性 getter 签名“()umple.pts.domain.coreEntities.Stop;” 在属性 umple.pts.domain.coreEntities.Line.SecondEndStop 的重映射文件中 错误:属性设置器签名无效 '(umple.pts.domain.coreEntities.Stop;)Z ' 在属性 umple.pts.domain.coreEntities.Line.SecondEndStop 的重映射文件中 错误:无效的属性签名“()[umple.pts.domain.coreEntities.Stop;”重新 属性 umple.pts.domain.coreEntities.Line.Stops 的映射文件 错误:无效的属性 getter 签名 '()[umple.pts.domain.coreEntities.Stop; ' 在属性 umple.pts.domain.coreEntities.Line.Stops 的重映射文件中 错误:无效的属性设置器签名'([umple.pts.domain.coreEntities.Stop;) Z' 在属性 umple.pts.domain.coreEntities.Line.Stops

D:\PTS\PTS_SVN\Libraries\ikvm-0.44.0.5\bin>

的重映射文件中我可以使用自定义属性还是必须通过其他方式来做到这一点?

I used the above and wrote this:

<class name="umple.pts.domain.coreEntities.Stop">
    <property name="StopName" sig="()Ljava.lang.String;">
        <getter name="getName" sig="()Ljava.lang.String;" />
        <setter name="setName" sig="(Ljava.lang.String;)Z" />
    </property>
    <property name="StopId" sig="()I">
        <getter name="getStopId" sig="()I" />
        <setter name="setStopId" sig="(I)V" />
    </property>
</class>
<class name="umple.pts.domain.coreEntities.Line">
    <property name="LineName" sig="()Ljava.lang.String;">
        <getter name="getName" sig="()Ljava.lang.String;" />
        <setter name="setName" sig="(Ljava.lang.String;)V" />
    </property>
    <property name="LineId" sig="()I">
        <getter name="getLineId" sig="()I" />
        <setter name="setLineId" sig="(I)V" />
    </property>
    <property name="FirstEndStop" sig="()umple.pts.domain.coreEntities.Stop;">
        <getter name="getFirstEndStop" sig="()umple.pts.domain.coreEntities.Stop;" />
        <setter name="setFirstEndStop" sig="(umple.pts.domain.coreEntities.Stop;)Z" 

/>

/>

/>

I get an error while generating the dll file:

D:\PTS\PTS_SVN\Libraries\ikvm-0.44.0.5\bin>ikvmc -remap:map.xml -target:library
PTSDomain.jar
Note IKVMC0002: output file is "PTSDomain.dll"
Error: Invalid property signature '()umple.pts.domain.coreEntities.Stop;' in rem
ap file for property umple.pts.domain.coreEntities.Line.FirstEndStop
Error: Invalid property getter signature '()umple.pts.domain.coreEntities.Stop;'
in remap file for property umple.pts.domain.coreEntities.Line.FirstEndStop
Error: Invalid property setter signature '(umple.pts.domain.coreEntities.Stop;)Z
' in remap file for property umple.pts.domain.coreEntities.Line.FirstEndStop
Error: Invalid property signature '()umple.pts.domain.coreEntities.Stop;' in rem
ap file for property umple.pts.domain.coreEntities.Line.SecondEndStop
Error: Invalid property getter signature '()umple.pts.domain.coreEntities.Stop;'
in remap file for property umple.pts.domain.coreEntities.Line.SecondEndStop
Error: Invalid property setter signature '(umple.pts.domain.coreEntities.Stop;)Z
' in remap file for property umple.pts.domain.coreEntities.Line.SecondEndStop
Error: Invalid property signature '()[umple.pts.domain.coreEntities.Stop;' in re
map file for property umple.pts.domain.coreEntities.Line.Stops
Error: Invalid property getter signature '()[umple.pts.domain.coreEntities.Stop;
' in remap file for property umple.pts.domain.coreEntities.Line.Stops
Error: Invalid property setter signature '([umple.pts.domain.coreEntities.Stop;)
Z' in remap file for property umple.pts.domain.coreEntities.Line.Stops

D:\PTS\PTS_SVN\Libraries\ikvm-0.44.0.5\bin>

Can i use the custom properties or will i have to do that via some other way??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

此刻的回忆 2024-10-19 00:35:13

您缺少 umple.pts.domain.coreEntities.Line.Stops 前面的 L;

You're missing the L in front of umple.pts.domain.coreEntities.Line.Stops;

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文