Closed shrtminded closed 10 years ago
isn't problem just in Ops because of missing bindings in binaryOperatorMethods ?
for example when using RegExp operator (which is missing in Ops declaration too) it ends with an error too:
def a = "blabla"
a =~ /bla/
instanceof
and regexp operators added toward 1.6.
I am receiving a IllegalArgumentException when I use a 'keyword' (like instanceof)
Example:
causes the following Exception
It looks like KEYWORD types are not being checked.
I was able to work around this by adding a isKeywordOperator method in Ops.java
and calling it in the SandboxTransformer
Not sure if this is the best way to do this is or not but thought I would pass along what I found out.