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

Inherited methods are ignored when searching for bind/unbind methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • maven-scr-plugin-1.2.0
    • maven-scr-plugin-1.4.2
    • SCR Tooling
    • None

    Description

      I have a class that inherits 2 protected methods from its parent class and I want to use these methods to bind and unbind the LogService. I've set the following annotation:

      @Reference(
      name="LogService",
      referenceInterface=LogService.class,
      cardinality=ReferenceCardinality.MANDATORY_UNARY,
      policy=ReferencePolicy.DYNAMIC,
      bind="setLogService",
      unbind="unsetLogService")

      The maven src plugin comes with the following messages:

      [INFO] [scr:scr

      {execution: generate-scr-scrdescriptor}

      ]
      [WARNING] @scr.reference: Method setLogService should be declared protected (Java annotations in nl.interact911.ipds.connector.xmpp.XMPPConnector)
      [ERROR] @scr.reference: Missing method unsetLogService for reference LogService (Java annotations in nl.interact911.ipds.connector.xmpp.XMPPConnector)

      The SCR plugin apparently ignores inherited methods, because i have no problem calling the mentioned methods from within the annotated class.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            cathodion Geert Schuring
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: