easymock version 2.4+ds1-6 failed to build with openjdk-7

Bug #888122 reported by James Page
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
easymock (Ubuntu)
Fix Released
High
James Page
Quantal
Fix Released
High
James Page

Bug Description

During a rebuild test on precise with default-jdk switched to openjdk-7, a build failure was detected for easymock version 2.4+ds1-6.

See attached log for full build failure details.

This log snippet might also be of interest:

    [javac] /«BUILDDIR»/easymock-2.4+ds1/debian/build.xml:24: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 63 source files to /«BUILDDIR»/easymock-2.4+ds1/build
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] /«BUILDDIR»/easymock-2.4+ds1/src/org/easymock/EasyMock.java:1433: error: name clash: capture(Capture<Integer>) and <T>capture(Capture<T>) have the same erasure
    [javac] public static int capture(Capture<Integer> captured) {
    [javac] ^
    [javac] where T is a type-variable:
    [javac] T extends Object declared in method <T>capture(Capture<T>)
    [javac] /«BUILDDIR»/easymock-2.4+ds1/src/org/easymock/EasyMock.java:1444: error: name clash: capture(Capture<Long>) and <T>capture(Capture<T>) have the same erasure
    [javac] public static long capture(Capture<Long> captured) {
    [javac] ^
    [javac] where T is a type-variable:
    [javac] T extends Object declared in method <T>capture(Capture<T>)
    [javac] /«BUILDDIR»/easymock-2.4+ds1/src/org/easymock/EasyMock.java:1455: error: name clash: capture(Capture<Float>) and <T>capture(Capture<T>) have the same erasure
    [javac] public static float capture(Capture<Float> captured) {
    [javac] ^
    [javac] where T is a type-variable:
    [javac] T extends Object declared in method <T>capture(Capture<T>)
    [javac] /«BUILDDIR»/easymock-2.4+ds1/src/org/easymock/EasyMock.java:1466: error: name clash: capture(Capture<Double>) and <T>capture(Capture<T>) have the same erasure
    [javac] public static double capture(Capture<Double> captured) {
    [javac] ^
    [javac] where T is a type-variable:
    [javac] T extends Object declared in method <T>capture(Capture<T>)
    [javac] /«BUILDDIR»/easymock-2.4+ds1/src/org/easymock/EasyMock.java:1477: error: name clash: capture(Capture<Byte>) and <T>capture(Capture<T>) have the same erasure
    [javac] public static byte capture(Capture<Byte> captured) {
    [javac] ^
    [javac] where T is a type-variable:
    [javac] T extends Object declared in method <T>capture(Capture<T>)
    [javac] /«BUILDDIR»/easymock-2.4+ds1/src/org/easymock/EasyMock.java:1488: error: name clash: capture(Capture<Character>) and <T>capture(Capture<T>) have the same erasure
    [javac] public static char capture(Capture<Character> captured) {
    [javac] ^
    [javac] where T is a type-variable:
    [javac] T extends Object declared in method <T>capture(Capture<T>)
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 6 errors
    [javac] 1 warning

BUILD FAILED
/«BUILDDIR»/easymock-2.4+ds1/debian/build.xml:24: Compile failed; see the compiler error output for details.

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

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 :

easymock 3.1 resolved this issue and provide Java7 compat - we should upgrade.

Changed in easymock (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → James Page (james-page)
Revision history for this message
James Page (james-page) wrote :
James Page (james-page)
Changed in easymock (Ubuntu):
assignee: James Page (james-page) → nobody
Revision history for this message
James Page (james-page) wrote :

In actual fact easymock 3.1 just deprecates the offending methods.

Until this is actually resolved upstream I'll cherry pick a fix from the latest upstream release for 2.4.

Changed in easymock (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → James Page (james-page)
Changed in easymock (Ubuntu Quantal):
importance: Medium → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package easymock - 2.4+ds1-6ubuntu1

---------------
easymock (2.4+ds1-6ubuntu1) quantal; urgency=low

  * Fix FTBFS ith openjdk-7 (LP: #888122):
    - d/patches/java7-compat.patch: Adapted patch from upstream trunk
      to support compilation under Java 7 which has tighter checks on
      conflicting erasures for methods.
 -- James Page <email address hidden> Mon, 21 May 2012 12:09:59 +0100

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

Other bug subscribers

Bug attachments

Remote bug watches

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