3 Replies Latest reply on Apr 19, 2012 12:52 PM by jaikiran

    Bit shift operator in action expression

    jaikiran

      I've got a rule whose action looks something like this:

       

      System.out.println("IM=" + Integer.valueOf(($foo & $bar) >> Integer.numberOfTrailingZeros($abc)));
      

       

      The rule keeps failing during parse (enabled byteman debug logging) with a message saying "invalid expression". A quick check suggests that it fails due to the presence of the bit shift operator >>.

       

      I'm using 2.0.1 version. Is this a bug or am I missing something?

       

      P.S: I haven't dug in deeper right now (a bit too late in the night)