Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-654

manual lookups of beans with generics fail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.3
    • Fix Version/s: 1.6.0
    • Component/s: Injection and Lookup
    • Labels:
      None

      Description

      the type-check it too strict right now.

      e.g. for:
      public interface CustomBean<T>
      {
      //...
      }

      public class CustomBeanImpl implements CustomBean<String>
      {
      //...
      }

      the >manual< lookup by type with CustomBean.class fails, but it works correctly e.g. in case of:

      public class CustomBeanImpl implements CustomBean
      {
      //...
      }

        Attachments

        1. OWB-654.patch
          14 kB
          Daniel Cunha
        2. OWB-654_test.zip
          9 kB
          Gerhard Petracek

          Activity

            People

            • Assignee:
              struberg Mark Struberg
              Reporter:
              gpetracek Gerhard Petracek
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: