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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0
    • Component/s: container system
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: