Mercurial > hg > truffle
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/UnsafeCastNode.java @ 7097:6644cecbd3a7
Replace ResolvedJavaType.isAssignableTo with isAssignableFrom to be consistent with java.lang.Class
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Thu, 29 Nov 2012 10:10:03 -0800 |
parents | dd81042f4eb1 |
children | e23980f4a890 |
comparison
equal
deleted
inserted
replaced
7096:585fc9f79ebc | 7097:6644cecbd3a7 |
---|---|
66 return this; | 66 return this; |
67 } | 67 } |
68 if (my.nonNull() && !other.nonNull()) { | 68 if (my.nonNull() && !other.nonNull()) { |
69 return this; | 69 return this; |
70 } | 70 } |
71 if (my.type() != other.type() && my.type().isAssignableTo(other.type())) { | 71 if (my.type() != other.type() && other.type().isAssignableFrom(my.type())) { |
72 return this; | 72 return this; |
73 } | 73 } |
74 } | 74 } |
75 return object; | 75 return object; |
76 } | 76 } |