You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm using JP, and in the following code, I found that variables have the same hashCode in different scopes
public void hash(){
{
// 1
Object cnt = new Object();
cnt.equals(null);
}
{
// 2
Object cnt = new Object();
cnt.equals(null);
}
}
Here is the output. The ranges are different, but the hash code is Identical value. And is there any way to distinguish the two VariableDeclarators by hash code?
Hello! I'm using JP, and in the following code, I found that variables have the same hashCode in different scopes
Here is the output. The ranges are different, but the hash code is Identical value. And is there any way to distinguish the two VariableDeclarators by hash code?
The text was updated successfully, but these errors were encountered: