[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Objenesis 2.5



Le 15/01/2017 à 20:24, Markus Koschany a écrit :

> I'm working on an update for objenesis. The package currently fails to
> build because one of the tests causes an error. Has anyone an idea why
> the test is failing now? I've pushed my changes to the experimental branch.

I got a quick look, I checked out the upstream repository at the 2.5
tag and ran the tests. I got another failure in the same test method:

testDefineClass(org.objenesis.instantiator.basic.ClassDefinitionUtilsTest)
 Time elapsed: 0.005 sec  <<< ERROR!
java.lang.reflect.InvocationTargetException
        at
org.objenesis.instantiator.basic.ClassDefinitionUtilsTest.testDefineClass(ClassDefinitionUtilsTest.java:32)
Caused by: java.lang.LinkageError: loader (instance of
sun/misc/Launcher$AppClassLoader): attempted  duplicate class definition
for name: "org/objenesis/EmptyClass"
        at
org.objenesis.instantiator.basic.ClassDefinitionUtilsTest.testDefineClass(ClassDefinitionUtilsTest.java:32)


This happens with OpenJDK 7 & 8 and Oracle Java 8. This test works
fine on Windows 7 with Java 8.

This looks like an upstream bug to me.

Emmanuel Bourg


Reply to: