Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-5
-
None
-
None
Description
1> d = 1.234.doubleValue()
2> x = (Integer) d
3> y = (int) d
4> assert x.class == Integer.class
5> assert y.class != Double.class : y.class
6> go
>>> a serious error occurred: class java.lang.Double. Expression: (y.class != java.lang.Double.class)
>>> stacktrace:
java.lang.AssertionError: class java.lang.Double. Expression: (y.class != java.lang.Double.class)