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

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: