F****n 发帖数: 3271 | 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? |
m******t 发帖数: 2416 | 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?
|
H***a 发帖数: 189 | 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?
|
R*******r 发帖数: 104 | 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?
|
F****n 发帖数: 3271 | 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?
|
g****c 发帖数: 299 | 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.
|
R*******r 发帖数: 104 | 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.
|
m******t 发帖数: 2416 | 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.
|