Bug#961839: closure-compiler: FTBFS: <functions> is not abstract and does not override abstract method test(Object) in Predicate

tony mancill tmancill at debian.org
Sun May 31 18:36:47 BST 2020


On Sat, May 30, 2020 at 02:13:25AM -0400, Sandro Tosi wrote:
> Source: closure-compiler
> Version: 20130227+dfsg1-10
> Severity: serious
> 
> <snip>
>
>     [javac] /build/closure-compiler-20130227+dfsg1/src/com/google/javascript/jscomp/Scope.java:67: error: <anonymous com.google.javascript.jscomp.Scope$1> is not abstract and does not override abstract method test(Var) in Predicate
>     [javac]       new Predicate<Var>() {
>     [javac]                            ^

Hi Sandro,

Thank you for the bug report.  This is due to the recent Guava update
from 19.0 -> 29.0.  test() was introduced in version 21.  Somewhat
ironically, test() appears to lack any Javadoc [1] because it was added
to more closely emulate java.util.function.Predicate [2] and use of the
Guava Predicate is discouraged by its authors anyway [3].

Since closure-compiler is hopelessly old, I think we should reevaluate
where we are with respect to the necessary build-dependencies to update
to a modern version of closure-compiler.

Cheers,
tony

[1] https://www.javadoc.io/doc/com.google.guava/guava/29.0-jre/src-html/com/google/common/base/Predicate.html#line.77
[2] https://cr.openjdk.java.net/~iris/se/11/latestSpec/api/java.base/java/util/function/Predicate.html#test(T)
[3] https://github.com/google/guava/wiki/FunctionalExplained#caveats
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20200531/1ebc9731/attachment.sig>


More information about the pkg-java-maintainers mailing list