M
mike
Hi,
We have the following method.
private int getOurId(Object value, Transaction c)
throws Exception {
if (value == null) {
return -1;
}
return ((MyInterface) value).getMyId(c);
}
And getMyId(c) returns an Integer object. We were expecting Eclipse to
give a compilation error, since return type is int for method, and
show the error in red within IDE. When running ant we get a
compilation error. We fixed with intValue().
The only difference we have is that we use 1.4 for ant and 1.5 in
Eclipse. Could that give such a difference?
//mike
We have the following method.
private int getOurId(Object value, Transaction c)
throws Exception {
if (value == null) {
return -1;
}
return ((MyInterface) value).getMyId(c);
}
And getMyId(c) returns an Integer object. We were expecting Eclipse to
give a compilation error, since return type is int for method, and
show the error in red within IDE. When running ant we get a
compilation error. We fixed with intValue().
The only difference we have is that we use 1.4 for ant and 1.5 in
Eclipse. Could that give such a difference?
//mike