]
James Perkins moved JBLOGGING-120 to LOGTOOL-96:
------------------------------------------------
Project: Log Tool (was: JBoss Logging)
Key: LOGTOOL-96 (was: JBLOGGING-120)
Component/s: (was: jboss-logging-logmanager)
Affects Version/s: (was: 3.3.0.Beta1)
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
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}