[jboss-jira] [JBoss JIRA] (LOGTOOL-96) Static & default interface methods in Logger interface require annotation

Bogdan Mart (JIRA) issues at jboss.org
Sun Oct 23 07:27:00 EDT 2016


    [ https://issues.jboss.org/browse/LOGTOOL-96?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13310650#comment-13310650 ] 

Bogdan Mart commented on LOGTOOL-96:
------------------------------------

Hello, so this is ging into release 2.1.0?
I really like this issue to be fixed, any estimations, when 2.1.0 would be released?

> Static & default interface methods in Logger interface require annotation
> -------------------------------------------------------------------------
>
>                 Key: LOGTOOL-96
>                 URL: https://issues.jboss.org/browse/LOGTOOL-96
>             Project: Log Tool
>          Issue Type: Bug
>            Reporter: Radim Vansa
>            Assignee: James Perkins
>             Fix For: 2.1.0.Alpha1
>
>
> 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:
> {code}
> @MessageLogger(projectCode = "FOO")
> public interface FooMessageLogger extends BasicLogger {
>    static FooMessageLogger getLog(Class clazz) {
>       return Logger.getMessageLogger(FooMessageLogger.class, clazz.getName());
>    }
>    /* regular annotated logging methods */
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list