Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1577

from cdi, a request for a proxy might not have a main interface

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.0
    • container system
    • 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

      Attachments

        Activity

          People

            djencks David Jencks
            djencks David Jencks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: