Uploaded image for project: 'Log Tool'
  1. Log Tool
  2. LOGTOOL-96

Static & default interface methods in Logger interface require annotation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.1.0.Alpha1
    • None
    • None

    Description

      When I want to add a static helper method to the interface used for message logger, I get an error about requiring the @Message annotation. I think that this should not be required for static methods.

      My usecase:

      @MessageLogger(projectCode = "FOO")
      public interface FooMessageLogger extends BasicLogger {
         static FooMessageLogger getLog(Class clazz) {
            return Logger.getMessageLogger(FooMessageLogger.class, clazz.getName());
         }
      
         /* regular annotated logging methods */
      }
      

      Attachments

        Activity

          People

            jperkins-rhn James Perkins
            rvansa1@redhat.com Radim Vansa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: