Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.1-rc-3
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
int a = 41 int b = 4 void failsafe(Closure action) { try { action.call() } catch (Throwable e) { e.printStackTrace() } } GString gs = "${b}1" failsafe { println gs == a } // true failsafe { println a == gs } // throws ClassCastException String s = '41' failsafe { println a == s } // throws ClassCastException failsafe { println s == a } // throws ClassCastException
I haven't attached a testcase as I'm not sure what the right behavior is.
it is a bug, but no critical bug. I set the priority to "Major" and the fix version to "1.2"