comparison agent/src/share/classes/sun/jvm/hotspot/runtime/StackValue.java @ 3908:7588156f5cf9

7051798: SA-JDI: NPE in Frame.addressOfStackSlot(Frame.java:244) Reviewed-by: kvn
author never
date Mon, 05 Sep 2011 17:09:05 -0700
parents c18cbe5936b8
children
comparison
equal deleted inserted replaced
3907:7b5c767f229c 3908:7588156f5cf9
98 } 98 }
99 } 99 }
100 100
101 public int hashCode() { 101 public int hashCode() {
102 if (type == BasicType.getTObject()) { 102 if (type == BasicType.getTObject()) {
103 return handleValue.hashCode(); 103 return handleValue != null ? handleValue.hashCode() : 5;
104 } else { 104 } else {
105 // Returns 0 for conflict type 105 // Returns 0 for conflict type
106 return (int) integerValue; 106 return (int) integerValue;
107 } 107 }
108 } 108 }