Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0
-
None
Description
If you call
Bean<?> farmerBean = getCurrentManager().resolve(getCurrentManager().getBeans(FarmerLocal.class,LANDOWNER_LITERAL));
FarmerLocal farmer = (FarmerLocal) getCurrentManager().getReference(farmerBean, Object.class, getCurrentManager().createCreationalContext(farmerBean));
the Object.class gets fed into CdiPlugin and ProxyInterfaceResolver as the main proxy type. Obviously this won't work .
Solution appears to be for the CdiPlugin to convert this to null and the resolver to ignore a null main interface.
This relates to at least org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.EnterpriseBeanSpecializationIntegrationTest