You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am receiving a IllegalArgumentException when I have an logical operation.
For example:
if ((1==1) && (2==2)) {
// do something
}
Cause this exception to be thrown
java.lang.IllegalArgumentException: 164
at org.kohsuke.groovy.sandbox.impl.Ops.binaryOperatorMethods(Ops.java:29)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedBinaryOp(Checker.java:311)
at org.kohsuke.groovy.sandbox.impl.Checker$checkedBinaryOp$2.callStatic(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:157)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:173)
I was able to fix this issue locally but not sure if this is how you would want to fix it. Below is the patch for the changes I made if you want to use them ...
I've fixed this issue. The patch is actually incorrect because the "or" method is for overloading bitwise-or, which is not the same thing as logical or.
I am receiving a IllegalArgumentException when I have an logical operation.
For example:
Cause this exception to be thrown
I am not sure if this is related to issue #9.
The text was updated successfully, but these errors were encountered: