IKVM 复杂自定义类型在重新映射到属性时出错!
我使用上面的内容并写了这个:
<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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您缺少 umple.pts.domain.coreEntities.Line.Stops 前面的 L;
You're missing the L in front of umple.pts.domain.coreEntities.Line.Stops;