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

Inconsistent Validation with Metatype Container

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: maven-scr-plugin 1.22.0
    • Fix Version/s: None
    • Component/s: SCR Tooling
    • Labels:
      None

      Description

      There are inconsistence warnings that are produced when generating the components using the maven-scr-plugin.

      Case 1

      @Component(label = "Alphabet")
      

      Component x.y.Z has set a label. However metatype is set to false. This label is ignored.

      Case 2

      @Component(metatype = true, label = "Alphabet")
      

      @Component : Component is defined to generate metatype information, however no properties have been defined; in case no properties are wanted, consider to use 'metatype=false'

      As an developer, if I enable strictMode, the build will always fail as either the code in SCRDescriptorGenerator.java or Validator.java will output the above warnings as errors.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                JBodkin JBodkin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: