I have the following code in my presenter in a GWT MVP application:
public void onFailure(ServerFailure error) {
String errCode = error.getMessage();
Window.alert(errCode);
Window.alert("Server Error: pleaseEnterQuestion");
if(errCode == "Server Error: pleaseEnterQuestion")
Window.alert("same");
else
Window.alert("different");
}
The first two alerts look exactly the same. The third alert is different
. But I expect it to be same
.