Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-2
-
Fix Version/s: 1.0-beta-3
-
Component/s: None
-
Labels:None
-
Environment:Windows XP Professional
-
Number of attachments :
Description
In the following code
Byte b = 3
println(b.class)
b is an instanceof java.lang.Integer instead of java.lang.Byte
The type defined is not honored.
Currently the workaround is to define b as follows
Byte b = new Byte("3") // constructor with a String