-
Suggestion
-
Resolution: Won't Fix
-
None
Problem and workaround:
Expected solution:
Instrumentation of lambda functions shall always work and shall not generate any compilation errors, no matter how generic types/methods are declared.
Possible ways to achieve this:
1) Implement some heuristics, by parsing entire source file as well as referring to information already present in Clover's database, trying to get more information about types used.
This will not work in 100% of cases, but may reduce number of compilation errors.
2) Implement byte code instrumentation.
This could be a Clover's post-processing phase. Could be handled by Service Provider Interface (i.e. be more flexible solution).
3) Inline instrumentation code of expression-like lambda instead of using lambdaInc()
- derived from
-
CLOV-1399 Java 1.8 compilation fails when lambda is passed to a generic argument
- Closed
-
CLOV-1463 Java 1.8 stream example instrumentation fails
- Closed
-
CLOV-1464 1.8 instrumentation fails
- Closed
- relates to
-
CLOV-1596 Use heuristics to solve JDK8 Stream compilation errors
- Closed
-
CLOV-1762 Instrumentation of method references with no compilation errors
- Closed