Bug#662811: jmock2: FTBFS: might be related to hamcrest 1.2 upgrade

2012-07-06 Thread Erik Brangs

Hi,

I suspect that the FTBFS is related to the upgrade of to 
libhamcrest-java to 1.2 (see 
http://lists.debian.org/debian-java/2012/03/msg00035.html) because 
jmock2 builds on squeeze with libhamcrest-java (1.1) installed. Ubuntu 
precise also uses libhamcrest-java (1.1) to build jmock2.



Kind regards,

Erik Brangs



__
This is the maintainer address of Debian's Java team
. 
Please use
debian-j...@lists.debian.org for discussions and questions.


Bug#662811: jmock2: FTBFS

2012-03-06 Thread Moritz Muehlenhoff
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) in 
org.jmock.internal.InvocationExpectation cannot be applied to 
(org.hamcrest.Matcher)
[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