-
Notifications
You must be signed in to change notification settings - Fork 184
Closed
Description
When trying to use += on a null string an error occurs.
bsh % String s;
--> $0 = null :null
bsh % s += "1";
// Error: Evaluation Error: Non primitive value in operator: class bsh.Primitive "+" class java.lang.String : at Line: 2 : in file: <unknown file> : s += "1"Expected result:
The null string should be converted to a string value "null", as per Java, before concatenation.
bsh % String s;
--> $0 = null :null
bsh % s += "1";
--> $2 = "null1" :StringReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels