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

Property annotation has issues with comment directly above

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • scr annotations 1.2.0
    • maven-scr-plugin-1.6.0
    • SCR Tooling
    • None
    • OSX, jdk16 64bit

    Description

      When annotating a member as an OSGi property i get an invalid key generated when I put a // comment above.
      For instance:
      public class InstrumentServiceImpl implements InstrumentServiceInterface {
      private static final Logger logger = Logger.getLogger(Instrument.class.getName());

      // OSGi Configurable Properties
      @Property(name="logPathFormat", value="./log/instrumentation"

      will generate a key that looks like it is concatenating the comment into the key name for some reason. "OSGi Configurable Properties
      logPathFormat"

      as a work around if I change it to:
      public class InstrumentServiceImpl implements InstrumentServiceInterface {
      private static final Logger logger = Logger.getLogger(Instrument.class.getName());

      /** OSGi Configurable Properties */
      @Property(name="logPathFormat", value="./log/instrumentation"

      it works fine

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            dbritsch Douglas Britsch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: