Hi there,
we're using jglue 3.0.1 and the following injection:
@Inject
Instance<BaseRestClient<?>> restClients;
While the production code works (and the tests did as well with jGlue 2.2.1) the test are broken with version 3.0.1 with the following exception:
java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class
at org.jglue.cdiunit.internal.WeldTestUrlDeployment.<init>(WeldTestUrlDeployment.java:248)
at org.jglue.cdiunit.CdiRunner$1.createDeployment(CdiRunner.java:83)
at org.jboss.weld.environment.se.Weld.initialize(Weld.java:137)
at org.jglue.cdiunit.CdiRunner.createTest(CdiRunner.java:94)
Are we doing something wrong?
Best regards,
Ulrich