avatar
Java5 compatibility issue# Java - 爪哇娇娃
F*n
1
In Java5 "enum" is a reserved keyword. So I have many progams in which "enum"
has been used as variable names. Is there any tool I can used to convert the
names so those programs can get compiled under Java5?
avatar
m*t
2

"
Maybe rename it to something else using Eclipse (I believe Netbeans or
IntelliJ support it too) refactoring?

【在 F****n 的大作中提到】
: In Java5 "enum" is a reserved keyword. So I have many progams in which "enum"
: has been used as variable names. Is there any tool I can used to convert the
: names so those programs can get compiled under Java5?

avatar
H*a
3
you can compile to 1.4 level without checking enum key word
javac -target ?

"

【在 F****n 的大作中提到】
: In Java5 "enum" is a reserved keyword. So I have many progams in which "enum"
: has been used as variable names. Is there any tool I can used to convert the
: names so those programs can get compiled under Java5?

avatar
R*r
4
refactor under eclipse, should be very safe to do simple rename.

"

【在 F****n 的大作中提到】
: In Java5 "enum" is a reserved keyword. So I have many progams in which "enum"
: has been used as variable names. Is there any tool I can used to convert the
: names so those programs can get compiled under Java5?

avatar
F*n
5
Is the refactoring tool in Eclipse reliable? I am currently using JBuilder and
Netbeans, and I don't think I trust the refactoring tool from either of them.
Anyway I can try it myself but if you know something it could save me from
messing up the huge code base i have to deal with.

【在 m******t 的大作中提到】
:
: "
: Maybe rename it to something else using Eclipse (I believe Netbeans or
: IntelliJ support it too) refactoring?

avatar
g*c
6
there is refactoring tool in netbean too

and
them.

【在 F****n 的大作中提到】
: Is the refactoring tool in Eclipse reliable? I am currently using JBuilder and
: Netbeans, and I don't think I trust the refactoring tool from either of them.
: Anyway I can try it myself but if you know something it could save me from
: messing up the huge code base i have to deal with.

avatar
R*r
7
Will give you warning if it feels something could be wrong.
For simple refactoring like rename, I'd say it's pretty safe,
if you don't have compilation problem, you are done.

and
them.

【在 F****n 的大作中提到】
: Is the refactoring tool in Eclipse reliable? I am currently using JBuilder and
: Netbeans, and I don't think I trust the refactoring tool from either of them.
: Anyway I can try it myself but if you know something it could save me from
: messing up the huge code base i have to deal with.

avatar
m*t
8

and
them.
I haven't had any problem with it. It might cause trouble if you
have code accessing things through reflection. I don't suppose you
have to worry about that in your particular case.

【在 F****n 的大作中提到】
: Is the refactoring tool in Eclipse reliable? I am currently using JBuilder and
: Netbeans, and I don't think I trust the refactoring tool from either of them.
: Anyway I can try it myself but if you know something it could save me from
: messing up the huge code base i have to deal with.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。