我使用了以上内容并写了这个:
<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"
/&GT;
/&GT;
/&GT;
生成dll文件时出错:
D:\ PTS \ PTS_SVN \ Libraries \ ikvm-0.44.0.5 \ bin&gt; 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 signature'()[umple.pts.domain.coreEntities.Stop; '在重映射文件中的属性umple.pts.domain.coreEntities.Line.Stops 错误:无效的属性setter signature'([umple.pts.domain.coreEntities.Stop;) Z'在属性的重映射文件中umple.pts.domain.coreEntities.Line.Stops
d:\ PTS \ PTS_SVN \库\ IKVM-0.44.0.5 \ BIN&GT;
我可以使用自定义属性还是必须通过其他方式执行此操作?
答案 0 :(得分:2)
你错过了umple.pts.domain.coreEntities.Line.Stops前面的L;