jmock2 version 2.5.1+dfsg-1 failed to build with openjdk-7

Bug #888951 reported by James Page
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jmock2 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

During a rebuild test on precise with default-jdk switched to openjdk-7, a build failure was detected for jmock2 version 2.5.1+dfsg-1.

See attached log for full build failure details.

This log snippet might also be of interest:

    [javac] ^
    [javac] where T is a type-variable:
    [javac] T extends Object declared in method <T>with(Matcher<T>)
    [javac] /«BUILDDIR»/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] /«BUILDDIR»/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] /«BUILDDIR»/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] /«BUILDDIR»/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] /«BUILDDIR»/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] /«BUILDDIR»/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: /«BUILDDIR»/jmock2-2.5.1+dfsg/src/org/jmock/integration/junit4/JMock.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 16 errors
    [javac] 3 warnings

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

Total time: 4 seconds
make: *** [debian/stamp-ant-build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
────────────────────────────────────────────────────────────────────────────────
Build finished at 20111109-2300

Finished
────────

E: Build failure (dpkg-buildpackage died)

Revision history for this message
James Page (james-page) wrote : Build log
tags: added: amd64 auto java7-ftbfs
James Page (james-page)
tags: added: lang
Revision history for this message
James Page (james-page) wrote :

Reconfirmed in Ubuntu Quantal - adding ftbfs tag.

tags: added: ftbfs
Revision history for this message
Damien Raude-Morvan (drazzib) wrote :

Hi James,

It should be fixed with jmock2 2.5.1+dfsg-2.
Could you please sync with debian ?

Regards,

Revision history for this message
James Page (james-page) wrote :

Hi Damien

I don't see anything in the changelog to indicate this would be fixed and I still see the same erasure errors doing a test build of 2.5.1+dfsg-2 in Ubuntu quantal.

Revision history for this message
Logan Rosen (logan) wrote :

2.5.1+dfsg-2 buildlog

Revision history for this message
Clay Atkins (0lay) wrote :

We're mavenized. When will this fix show up in central?

Revision history for this message
Matthias Klose (doko) wrote :

-2 now ftbfs in raring

Changed in jmock2 (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Logan Rosen (logan) wrote :

This bug was fixed in the package jmock2 - 2.7~snapshot+201309170925-gitd7fe69b5+dfsg-1

---------------
jmock2 (2.7~snapshot+201309170925-gitd7fe69b5+dfsg-1) unstable; urgency=low

  [ Miguel Landaeta ]
  * Team upload.
  * New upstream release.
  * Fix wrong dependencies on junit in POM files. (Closes: #721538).
    Added patch (upstream is not providing POM files anymore):
    - 08mavenpoms
  * Prevent FTBFS errors by ignoring some unit tests failures. Added patches:
    - 06donthaltonjunitfailure
    - 07missinghamcrestjar

  [ Emmanuel Bourg ]
  * Use canonical URLs for the Vcs-* fields
  * debian/copyright: Removed the reference to /usr/share/common-licenses/BSD
    and quote the license text.
  * debian/rules: Improved the clean target

  [ Stephen Nelson ]
  * Fix a some FTBFS due to Java7 switch. (Closes: #717122, #717249).
  * Bump Standards-Version to 3.9.4. No changes were required.
  * Removed bundled jar files.
  * Bumped debhelper to version 9.
  * Patched build.xml to create java 1.6 source.
  * Patched source for unmappable character when using java 1.6 javadoc
    generation.

 -- Miguel Landaeta <email address hidden> Sun, 06 Oct 2013 18:24:26 -0300

Changed in jmock2 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.