| 作者 |
内容 |
| winds-home |
请教有关Rose生成Java代码的一个问题:
使用Rose生成Java代码框架时,假如有一个类的一个方法使用了 java.util.Properties类型的参数,怎样使生成的代码里包含
import java.util.Properties 这样的语句?
假如我在指定参数类型的地方写的是 Properties ,则在生成代码时提示
WARNING: Class Logical View::Test - operation doTest - the type of
parameter userInfo cannot be resolved - no import will be generated
假如写的是 java.util.Properties,则生成的代码是:
public java.util.Properties doTest(byte[] userID)
但是我想生成的是
import java.util.Properties
Class Test{
...
public Properties doTest(byte[] userID){
...
}
}
请问应该怎样设置?
|
| 02/06/15 15:15 |
酷帖! 臭帖! 回复 |
酷帖评价: 臭帖评价: |
| 返回页首 |
|
| keri |
回复:
请教有关Rose生成Java代码的一个问题:
选返回值的时候,找到那个Properties类,应该就可以倒出的,我一直这样用的。 |
| 02/06/15 21:58 |
酷帖! 臭帖! 回复 |
酷帖评价: 臭帖评价: |
| 返回页首 |
|
| steve_zhang |
回复:
请教有关Rose生成Java代码的一个问题:
你用的什么版本?
最新的Release应该fix了这个defect.现在Rose7.6已经有了两个patch.
试着先load java的framework,然后去掉generate full qualified name选项。应该可以成功。
|
| 02/06/17 02:51 |
酷帖! 臭帖! 回复 |
酷帖评价: 臭帖评价: |
| 返回页首 |
|
| winds-home |
回复:
请教有关Rose生成Java代码的一个问题:
我用的是 rose2002 |
| 02/06/17 11:24 |
酷帖! 臭帖! 回复 |
酷帖评价: 臭帖评价: |
| 返回页首 |
|
| steve_zhang |
回复:
请教有关Rose生成Java代码的一个问题:
2002 should be rose7.6. U can get the exact version from the
help.
Any way, today, I double checked it with the rose team of the
version 7.7. And I am sure, at least at this version, it works. And
I believe in the 7.6 should be ok.
So, my suggestion is:
Try to generate the code without full qualified name. U can uncheck
it in the operation/attribute property Dialog.
Hope it will help. |
| 02/06/18 04:36 |
酷帖! 臭帖! 回复 |
酷帖评价: 臭帖评价: |
| 返回页首 |
|
| steve_zhang |
回复:
请教有关Rose生成Java代码的一个问题:
2002 should be rose7.6. U can get the exact version from the
help.
Any way, today, I double checked it with the rose team of the
version 7.7. And I am sure, at least at this version, it works. And
I believe in the 7.6 should be ok.
So, my suggestion is:
Try to generate the code without full qualified name. U can uncheck
it in the operation/attribute property Dialog.
Hope it will help. |
| 02/06/18 04:37 |
酷帖! 臭帖! 回复 |
酷帖评价: 臭帖评价: |
| 返回页首 |
|
| winds-home |
回复:
请教有关Rose生成Java代码的一个问题:
我已经弄对了,是建工程的时候没有选择J2SDK
导入就可以了,谢谢几位! |
| 02/06/18 16:25 |
酷帖! 臭帖! 回复 |
|
酷帖评价: 臭帖评价: |
| 返回页首 |
|