Bug#717249: jmock2: FTBFS with Java7

Shuxiong Ye yeshuxiong at gmail.com
Thu Jul 18 11:40:25 UTC 2013


Package: jmock2
Version: 2.5.1+dfsg
Severity: serious
User: ubuntu-devel at lists.ubuntu.com
Usertags: openjdk-7-transition

compile:
    [mkdir] Created dir: /tmp/buildd/jmock2-2.5.1+dfsg/build/classes
    [javac] /tmp/buildd/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 177 source files to
/tmp/buildd/jmock2-2.5.1+dfsg/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction
with -source 1.5
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/test/org/jmock/example/sniper/Money.java:30:
warning: unmappable character for encoding ASCII
    [javac]         return "??" + amount;
    [javac]                 ^
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/test/org/jmock/example/sniper/Money.java:30:
warning: unmappable character for encoding ASCII
    [javac]         return "??" + amount;
    [javac]                  ^
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/Expectations.java:146: error:
name clash: with(Matcher<Boolean>) and <T>with(Matcher<T>) have the same
erasure
    [javac]     public boolean with(Matcher<Boolean> matcher) {
    [javac]                    ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/Expectations.java:151: error:
name clash: with(Matcher<Byte>) and <T>with(Matcher<T>) have the same
erasure
    [javac]     public byte with(Matcher<Byte> matcher) {
    [javac]                 ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/Expectations.java:156: error:
name clash: with(Matcher<Short>) and <T>with(Matcher<T>) have the same
erasure
    [javac]     public short with(Matcher<Short> matcher) {
    [javac]                  ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/Expectations.java:161: error:
name clash: with(Matcher<Character>) and <T>with(Matcher<T>) have the same
erasure
    [javac]     public char with(Matcher<Character> matcher) {
    [javac]                 ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/Expectations.java:166: error:
name clash: with(Matcher<Integer>) and <T>with(Matcher<T>) have the same
erasure
    [javac]     public int with(Matcher<Integer> matcher) {
    [javac]                ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/Expectations.java:171: error:
name clash: with(Matcher<Long>) and <T>with(Matcher<T>) have the same
erasure
    [javac]     public long with(Matcher<Long> matcher) {
    [javac]                 ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/Expectations.java:176: error:
name clash: with(Matcher<Float>) and <T>with(Matcher<T>) have the same
erasure
    [javac]     public float with(Matcher<Float> matcher) {
    [javac]                  ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/Expectations.java:181: error:
name clash: with(Matcher<Double>) and <T>with(Matcher<T>) have the same
erasure
    [javac]     public double with(Matcher<Double> matcher) {
    [javac]                   ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/syntax/ArgumentConstraintPhrases.java:7:
error: name clash: with(Matcher<Boolean>) and <T>with(Matcher<T>) have the
same erasure
    [javac]     boolean with(Matcher<Boolean> matcher);
    [javac]             ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/syntax/ArgumentConstraintPhrases.java:8:
error: name clash: with(Matcher<Byte>) and <T>with(Matcher<T>) have the
same erasure
    [javac]     byte with(Matcher<Byte> matcher);
    [javac]          ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/syntax/ArgumentConstraintPhrases.java:9:
error: name clash: with(Matcher<Short>) and <T>with(Matcher<T>) have the
same erasure
    [javac]     short with(Matcher<Short> matcher);
    [javac]           ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/syntax/ArgumentConstraintPhrases.java:10:
error: name clash: with(Matcher<Integer>) and <T>with(Matcher<T>) have the
same erasure
    [javac]     int with(Matcher<Integer> matcher);
    [javac]         ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/syntax/ArgumentConstraintPhrases.java:11:
error: name clash: with(Matcher<Long>) and <T>with(Matcher<T>) have the
same erasure
    [javac]     long with(Matcher<Long> matcher);
    [javac]          ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/syntax/ArgumentConstraintPhrases.java:12:
error: name clash: with(Matcher<Float>) and <T>with(Matcher<T>) have the
same erasure
    [javac]     float with(Matcher<Float> matcher);
    [javac]           ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/syntax/ArgumentConstraintPhrases.java:13:
error: name clash: with(Matcher<Double>) and <T>with(Matcher<T>) have the
same erasure
    [javac]     double with(Matcher<Double> matcher);
    [javac]            ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac]
/tmp/buildd/jmock2-2.5.1+dfsg/src/org/jmock/Expectations.java:141: error:
name clash: <T>with(Matcher<T>) in Expectations and with(Matcher<Double>)
in ArgumentConstraintPhrases have the same erasure, yet neither overrides
the other
    [javac]     public <T> T with(Matcher<T> matcher) {
    [javac]                  ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>with(Matcher<T>)
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 16 errors
    [javac] 3 warnings

BUILD FAILED
/tmp/buildd/jmock2-2.5.1+dfsg/build.xml:61: Compile failed; see the
compiler error output for details.


-- 
Sincerely

Shuxiong Ye

School of Electronics Engineering and Computer Science, Peking University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20130718/ded9f4a6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jmock2-openjdk-7-log
Type: application/octet-stream
Size: 22746 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20130718/ded9f4a6/attachment-0001.obj>


More information about the pkg-java-maintainers mailing list