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

[SCR ANT] A activator method without parameters issue a warning and failes the build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • scr generator 1.1.4
    • None
    • SCR Tooling

    Description

      The ANT SCR task will produce a warning in case the Component has paramterless activate method like:

      public void activate()

      { ... }

      This problem can be fixed by adding a @Activate annnotation to the method.

      However it seems to be a bug that
      1. the problem will issue only a warning but breaks the build
      2. I thought "activate()" is a valid signature.

      I propose either to issue the problem as an error (to make obviouse what actually broke the build) or to let this warning not break the build.

      Here is my Task execution:
      <scr srcdir="src/main/java" destdir="target/java" classpathref="scr-classpath"
      parseJavadoc="false" strictMode="false"
      generateAccessors="false" specVersion="1.1"/>

      Attachments

        Activity

          People

            Unassigned Unassigned
            dkuffner Daniel Kuffner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: