S
Serguei.Goumeniouk
Dear Experts,
I have the following lines in my codes to test a string:
String str = " ... some integer ...";
try {
int value = Integer.parseInt(str);
} catch (Exception ex) {
// This is not an integer
}
The variable "value" is not used anymore, so a clever compiler may
remove the try block.
In my Java environment the compiler does not "optimize" these lines
and everything works OK.
What I am worrying about is the following: "Are there any known Java
compilers which will optimize these codes?"
Regards,
Serguei.
I have the following lines in my codes to test a string:
String str = " ... some integer ...";
try {
int value = Integer.parseInt(str);
} catch (Exception ex) {
// This is not an integer
}
The variable "value" is not used anymore, so a clever compiler may
remove the try block.
In my Java environment the compiler does not "optimize" these lines
and everything works OK.
What I am worrying about is the following: "Are there any known Java
compilers which will optimize these codes?"
Regards,
Serguei.