dmfs / jems

Java gems, a collection of Java utilities.
Apache License 2.0
5 stars 2 forks source link

LGTM build fails #311

Closed dmfs closed 3 years ago

dmfs commented 3 years ago
2021-04-06 11:20:49] [build-stdout] [2021-04-06 11:20:49] [autobuild] /opt/src/src/main/java/org/dmfs/jems2/single/Digest.java:45: error: incompatible types: cannot infer type arguments for Mapped<>
[2021-04-06 11:20:49] [build-stdout] [2021-04-06 11:20:49] [autobuild]         this(messageDigestGenerator, new Mapped<>(part -> () -> part, new Seq<>(parts)));
[2021-04-06 11:20:49] [build-stdout] [2021-04-06 11:20:49] [autobuild]                                                ^
[2021-04-06 11:20:49] [build-stdout] [2021-04-06 11:20:49] [autobuild]     reason: cannot infer type-variable(s) OriginalType,ResultType,T
[2021-04-06 11:20:49] [build-stdout] [2021-04-06 11:20:49] [autobuild]       (argument mismatch; bad return type in lambda expression
[2021-04-06 11:20:49] [build-stdout] [2021-04-06 11:20:49] [autobuild]         ResultType is not a functional interface)
[2021-04-06 11:20:49] [build-stdout] [2021-04-06 11:20:49] [autobuild]   where OriginalType,ResultType,T are type-variables:
[2021-04-06 11:20:49] [build-stdout] [2021-04-06 11:20:49] [autobuild]     OriginalType extends Object declared in class Mapped
[2021-04-06 11:20:49] [build-stdout] [2021-04-06 11:20:49] [autobuild]     ResultType extends Object declared in class Mapped
[2021-04-06 11:20:49] [build-stdout] [2021-04-06 11:20:49] [autobuild]     T extends Object declared in class Seq

Looks like there is an issue with Java 12