Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1455

///Clover:OFF does not work with lambdas

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 3.3.0
    • 3.2.2
    • Instrumentation
    • None

    Description

      The following piece of code fails to be instrumented

      public class Foo {
          // /CLOVER:OFF
          public static void main(String[] args) {
              new ConcurrentHashMap<>().computeIfAbsent("foo", e -> null);
          }
          // /CLOVER:ON
      }
      

      Results in

      [ERROR] /Users/kasperni/workspace/cake-container/cake-container/cake-container-impl/target/clover/src-instrumented/org/cakeframework/internal/container/handler/Foo.java:[28,58] cannot find symbol
      symbol: variable __CLR3_2_2133133hrrnhz2t
      location: class org.cakeframework.internal.container.handler.Foo

      Attachments

        Activity

          People

            mparfianowicz Marek Parfianowicz
            8cff42a53fc0 Kasper Nielsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: