Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-416

Cannot trigger a rule inside a lambda

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • 4.0.17
    • None
    • Trigger Injection
    • None
    • Undefined

    Description

      The latest Byteman documentation (4.0.16) mentions inner classes, but doesn't mention lambdas. I have a rule looking like:

      RULE doSomething
      CLASS ReportService
      METHOD lambda$retrieveReport$0
      AT ENTRY
      IF TRUE
      DO System.out.println("XXXXXXXX");
      ENDRULE

      However it never seems to trigger. When I run bmsubmit without arguments it shows the rule but does not mention a trigger method. I have checked the method name with javap, and it's correct. I can trigger on other non-lambda methods of this class. I'm running AdoptOpenJdk 8 on Alpine Linux. Have also tried Java 16.0.1 on OSX.

      Does Byteman support lambdas? Do I need to do something else to have the rule trigger? 

       

      Attachments

        Activity

          People

            rhn-engineering-adinn Andrew Dinn
            david.plumpton David Plumpton (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: