Bug#667000: Rebuilding objenesis from source makes mockito FTBFS

Moritz Muehlenhoff muehlenhoff at univention.de
Tue Apr 3 10:06:38 UTC 2012


Package: objenesis
Version: 1.2+full-1
Severity: serious

I'm filing this against objenesis, since this appears to be where the error
is coming from. mockito builds fine if I use the pre-built deb from the
archive. However, when recompiling objenesis in sid and installing the
resulting binaries, mockito no longer builds correctly:

jh_build mockito-core-1.9.0.jar org/
find org/ -name *.java -and -type f -print0 | xargs -0 /usr/lib/jvm/default-java/bin/javac -cp /usr/share/java/objenesis.jar:/usr/share/java/cglib.jar:/usr/share/java/hamcrest-core.jar:/usr/share/java/asm3.jar:/usr/share/java/junit4.jar:debian/_jh_build.mockito-core-1.9.0 -d debian/_jh_build.mockito-core-1.9.0 -source 1.5
ClonesArguments.java:11: package org.objenesis does not exist
import org.objenesis.ObjenesisHelper;
                    ^
ThrowsExceptionClass.java:11: package org.objenesis does not exist
import org.objenesis.ObjenesisHelper;
                    ^
ClassImposterizer.java:14: package org.objenesis does not exist
import org.objenesis.ObjenesisStd;
                    ^
ClassImposterizer.java:28: cannot find symbol
symbol  : class ObjenesisStd
location: class org.mockito.internal.creation.jmock.ClassImposterizer
    private ObjenesisStd objenesis = new ObjenesisStd();
            ^
ClonesArguments.java:20: cannot find symbol
symbol  : variable ObjenesisHelper
location: class org.mockito.internal.stubbing.answers.ClonesArguments
            Object newInstance = ObjenesisHelper.newInstance(from.getClass());
                                 ^
ThrowsExceptionClass.java:27: cannot find symbol
symbol  : variable ObjenesisHelper
location: class org.mockito.internal.stubbing.answers.ThrowsExceptionClass
        Throwable throwable = (Throwable) ObjenesisHelper.newInstance(throwableClass);
                                          ^
ClassImposterizer.java:28: cannot find symbol
symbol  : class ObjenesisStd
location: class org.mockito.internal.creation.jmock.ClassImposterizer
    private ObjenesisStd objenesis = new ObjenesisStd();
                                         ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors
make[1]: *** [override_jh_build] Error 123
make[1]: Leaving directory `/home/jmm/mockito-1.9.0+ds1'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Diffing the file lists between the version in the archive and the
rebuilt version shows that these files are missing after the rebuild:

/usr/share/java/objenesis-1.2.jar
/usr/share/java/objenesis.jar

Cheers,
        Moritz





More information about the pkg-java-maintainers mailing list