Bug#662807: junit4: FTBFS

Moritz Muehlenhoff muehlenhoff at univention.de
Tue Mar 6 14:35:54 UTC 2012


Package: junit4
Version: 4.8.2-2
Severity: serious

Your package fails to build from source:

compile:
    [mkdir] Created dir: /home/jmm/junit4-4.8.2/build/generated-sources
    [javac] /usr/share/maven-ant-helper/maven-build.xml:337: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 154 source files to /home/jmm/junit4-4.8.2/build/classes
    [javac] CombinableMatcher.java:27: invalid inferred types for T; actual arguments do not conforms to inferred formal arguments
    [javac] required: org.hamcrest.Matcher<? super java.lang.Object>[]
    [javac] found: org.hamcrest.Matcher<capture#428 of ? extends T>,org.hamcrest.Matcher<capture#896 of ? extends T>
    [javac]             return new CombinableMatcher<T>(allOf(matcher, fMatcher));
    [javac]                                                  ^
    [javac] CombinableMatcher.java:32: invalid inferred types for T; actual arguments do not conforms to inferred formal arguments
    [javac] required: org.hamcrest.Matcher<? super java.lang.Object>[]
    [javac] found: org.hamcrest.Matcher<capture#304 of ? extends T>,org.hamcrest.Matcher<capture#323 of ? extends T>
    [javac]             return new CombinableMatcher<T>(anyOf(matcher, fMatcher));
    [javac]                                                  ^
    [javac] IsCollectionContaining.java:44: incompatible types
    [javac] found   : org.hamcrest.Matcher<java.lang.Iterable<java.lang.Object>>
    [javac] required: org.hamcrest.Matcher<java.lang.Iterable<T>>
    [javac]         return hasItem(equalTo(element));
    [javac]                       ^
    [javac] IsCollectionContaining.java:54: cannot find symbol
    [javac] symbol  : method allOf(java.util.Collection<org.hamcrest.Matcher<? extends java.lang.Iterable<T>>>)
    [javac] location: class org.junit.internal.matchers.IsCollectionContaining<T>
    [javac]         return allOf(all);
    [javac]                ^
    [javac] IsCollectionContaining.java:64: cannot find symbol
    [javac] symbol  : method allOf(java.util.Collection<org.hamcrest.Matcher<? extends java.lang.Iterable<T>>>)
    [javac] location: class org.junit.internal.matchers.IsCollectionContaining<T>
    [javac]         return allOf(all);
    [javac]                ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 5 errors

BUILD FAILED
/usr/share/maven-ant-helper/maven-build.xml:337: Compile failed; see the compiler error output for details.

Total time: 7 seconds
make: *** [debian/stamp-ant-build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2





More information about the pkg-java-maintainers mailing list