Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: X10 1.7.2 - C++ hosted
-
Fix Version/s: X10 1.7.3
-
Component/s: Language Specification, Managed X10: Compiler Codegen
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
class Bug {
static def check(a:Object, b:Object) = a==b;
public static def main(Rail[String]) {
System.out.println("check(1,1) " + (check(1,1)?"wrong":"right"));
}
}
check(1,1) wrong
a and b in check() should be boxed, thus should not be equal.
Issue Links
- is depended upon by
-
XTENLANG-218
== gives wrong answer for primitive values as Objects
-
- is duplicated by
-
XTENLANG-218
== gives wrong answer for primitive values as Objects
-
This blocks the consistent behavior of C++ and Java regression tests.