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

Static & default interface methods in Logger interface require annotation

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 2.1.0.Alpha1
    • 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
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: