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

Annotation configurations default values are not considered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • scr-2.0.6
    • None
    • None

    Description

      When an annotation is used to configure an SCR component (as per DS 1.3), the annotation's default values are not considered.

      This can lead to the odd situation that an annotation method with a default value returns null. I'm not sure if this violates a contract or another, however, my IDE complains when I do a null check.

      I think it would be the right thing to do to return the default value if no value is explicitly configured.

      Attachments

        1. FELIX-5404-integration-test-jsedding.patch
          9 kB
          Julian Sedding
        2. FELIX-5404-jsedding.patch
          4 kB
          Julian Sedding

        Activity

          People

            cziegeler Carsten Ziegeler
            jsedding Julian Sedding
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: