Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2014

Potential ClassCastException when a service property does not receive a value and is used in the constructor

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: iPOJO-1.4.0
    • Fix Version/s: iPOJO-1.6.0
    • Component/s: iPOJO
    • Labels:
      None

      Description

      If a component instance providing a service receive a configuration that does not assign a service property's field, when the pojo tried to do a 'if (prop == null)', a class cast exception happen. It comes from the injection of the NO_VALUE object instead of null.

        Attachments

          Activity

            People

            • Assignee:
              clement.escoffier Clement Escoffier
              Reporter:
              clement.escoffier Clement Escoffier
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: