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

[1.8] instrumentation fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • 3.2.2
    • 3.3.0
    • Instrumentation
    • None

      The following piece of code fails to be instrumented

      List<String> s = new ArrayList<>();
      String.join(", ", s.stream().map(e -> "'" + e + "'").collect(Collectors.toSet()));

      With this error
      [ERROR] /Users/kasperni/workspace/cake-container/cake-util/cake-util/target/clover/src-instrumented/org/cakeframework/internal/util/ValidOptions.java:[40,52] no suitable method found for join(java.lang.String,java.util.Set<java.lang.Object>)
      [ERROR] method java.lang.String.join(java.lang.CharSequence,java.lang.CharSequence...) is not applicable
      [ERROR] (varargs mismatch; inference variable R has incompatible bounds
      [ERROR] equality constraints: java.util.Set<java.lang.Object>
      [ERROR] upper bounds: java.lang.CharSequence,java.lang.Object)
      [ERROR] method java.lang.String.join(java.lang.CharSequence,java.lang.Iterable<? extends java.lang.CharSequence>) is not applicable
      [ERROR] (argument mismatch; inference variable R has incompatible bounds
      [ERROR] equality constraints: java.util.Set<java.lang.Object>
      [ERROR] upper bounds: java.lang.Iterable<? extends java.lang.CharSequence>,java.lang.Object)

              mparfianowicz Marek Parfianowicz
              4d85d3f9-8aa3-417a-bb6f-61e186be8e94 Deleted Account (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: