Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-246

CDI#current() should return CDI<Object> instead of CDI<T>

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.PRD
    • 1.1.EDR
    • None
    • None

      The reason is that it might be impossible to implement a parameterized method call like CDI.<Foo>current().get(). If CDI.current() would return CDI<Object> it would be obvious that one has to use CDI.current().select(Foo.class).get() for lookup of bean instances.

              Unassigned Unassigned
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: