[jboss-jira] [JBoss JIRA] (JBLOGGING-120) Static & default interface methods in Logger interface require annotation
Radim Vansa (JIRA)
issues at jboss.org
Fri Jan 15 11:20:00 EST 2016
[ https://issues.jboss.org/browse/JBLOGGING-120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radim Vansa updated JBLOGGING-120:
----------------------------------
Summary: Static & default interface methods in Logger interface require annotation (was: Static interface methods in Logger interface requires annotation)
> Static & default interface methods in Logger interface require annotation
> -------------------------------------------------------------------------
>
> Key: JBLOGGING-120
> URL: https://issues.jboss.org/browse/JBLOGGING-120
> Project: JBoss Logging
> Issue Type: Bug
> Components: jboss-logging-logmanager
> Affects Versions: 3.3.0.Beta1
> Reporter: Radim Vansa
> Assignee: James Perkins
>
> 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