Bug#662811: jmock2: FTBFS
Moritz Muehlenhoff
muehlenhoff at univention.de
Tue Mar 6 15:17:42 UTC 2012
Package: jmock2
Version: 2.5.1+dfsg-1
Severity: serious
Your package fails to build from source:
compile:
[mkdir] Created dir: /home/jmm/jmock2-2.5.1+dfsg/build/classes
[javac] /home/jmm/jmock2-2.5.1+dfsg/build.xml:61: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 175 source files to /home/jmm/jmock2-2.5.1+dfsg/build/classes
[javac] Money.java:30: warning: unmappable character for encoding ASCII
[javac] return "??" + amount;
[javac] ^
[javac] Money.java:30: warning: unmappable character for encoding ASCII
[javac] return "??" + amount;
[javac] ^
[javac] HamcrestTypeSafetyAcceptanceTests.java:3: cannot find symbol
[javac] symbol : class OrderingComparisons
[javac] location: package org.hamcrest.number
[javac] import static org.hamcrest.number.OrderingComparisons.greaterThan;
[javac] ^
[javac] HamcrestTypeSafetyAcceptanceTests.java:3: static import only from classes and interfaces
[javac] import static org.hamcrest.number.OrderingComparisons.greaterThan;
[javac] ^
[javac] HamcrestTypeSafetyAcceptanceTests.java:4: cannot find symbol
[javac] symbol : class StringStartsWith
[javac] location: package org.hamcrest.text
[javac] import static org.hamcrest.text.StringStartsWith.startsWith;
[javac] ^
[javac] HamcrestTypeSafetyAcceptanceTests.java:4: static import only from classes and interfaces
[javac] import static org.hamcrest.text.StringStartsWith.startsWith;
[javac] ^
[javac] Expectations.java:187: incompatible types
[javac] found : capture#417 of ? super java.lang.Boolean
[javac] required: boolean
[javac] return with(equalTo(value));
[javac] ^
[javac] Expectations.java:191: incompatible types
[javac] found : capture#174 of ? super java.lang.Byte
[javac] required: byte
[javac] return with(equalTo(value));
[javac] ^
[javac] Expectations.java:195: incompatible types
[javac] found : capture#436 of ? super java.lang.Short
[javac] required: short
[javac] return with(equalTo(value));
[javac] ^
[javac] Expectations.java:199: incompatible types
[javac] found : capture#151 of ? super java.lang.Character
[javac] required: char
[javac] return with(equalTo(value));
[javac] ^
[javac] Expectations.java:203: incompatible types
[javac] found : capture#17 of ? super java.lang.Integer
[javac] required: int
[javac] return with(equalTo(value));
[javac] ^
[javac] Expectations.java:207: incompatible types
[javac] found : capture#395 of ? super java.lang.Long
[javac] required: long
[javac] return with(equalTo(value));
[javac] ^
[javac] Expectations.java:211: incompatible types
[javac] found : capture#740 of ? super java.lang.Float
[javac] required: float
[javac] return with(equalTo(value));
[javac] ^
[javac] Expectations.java:215: incompatible types
[javac] found : capture#78 of ? super java.lang.Double
[javac] required: double
[javac] return with(equalTo(value));
[javac] ^
[javac] Expectations.java:219: incompatible types
[javac] found : capture#875 of ? super T
[javac] required: T
[javac] return with(equalTo(value));
[javac] ^
[javac] HamcrestTypeSafetyAcceptanceTests.java:26: cannot find symbol
[javac] symbol: method startsWith(java.lang.String)
[javac] exactly(1).of (anything()).method(withName("m")).with(startsWith("x"));
[javac] ^
[javac] HamcrestTypeSafetyAcceptanceTests.java:27: cannot find symbol
[javac] symbol: method greaterThan(int)
[javac] exactly(1).of (anything()).method(withName("m")).with(greaterThan(0));
[javac] ^
[javac] InvocationExpectationTests.java:75: setParametersMatcher(org.hamcrest.Matcher<java.lang.Object[]>) in org.jmock.internal.InvocationExpectation cannot be applied to (org.hamcrest.Matcher<capture#843 of ? super java.lang.Object[]>)
[javac] expectation.setParametersMatcher(equalTo(args));
[javac] ^
[javac] Note: JMock.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 17 errors
[javac] 2 warnings
BUILD FAILED
/home/jmm/jmock2-2.5.1+dfsg/build.xml:61: 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