[jboss-jira] [JBoss JIRA] (LOGTOOL-35) Processor fails to validate log messages defined in an inheriting interface
David Lloyd (Updated) (JIRA)
jira-events at lists.jboss.org
Mon Oct 24 10:03:45 EDT 2011
[ https://issues.jboss.org/browse/LOGTOOL-35?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Lloyd updated LOGTOOL-35:
-------------------------------
Summary: Processor fails to validate log messages defined in an inheriting interface (was: dav)
> Processor fails to validate log messages defined in an inheriting interface
> ---------------------------------------------------------------------------
>
> Key: LOGTOOL-35
> URL: https://issues.jboss.org/browse/LOGTOOL-35
> Project: Log Tool
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.1.0.Beta2
> Reporter: Sanne Grinovero
> Assignee: David Lloyd
> Fix For: 3.1.0.Beta3
>
>
> In both Infinispan and Hibernate we define a main logger in the core project, and extend this in each other module. In practice it looks like:
> {code:title="Main project"}
> @MessageLogger(projectCode = "ISPN")
> public interface Log extends BasicLogger {
> @LogMessage(level = WARN)
> @Message(value = "Field %s not found!!", id = 2)
> void fieldNotFound(String fieldName);
> ...
> {code}
> {code:title="Extending module"}
> @MessageLogger(projectCode = "ISPN")
> public interface Log extends org.infinispan.util.logging.Log {
> @LogMessage(level = ERROR)
> @Message(value = "Could not locate key class %s", id = 14001)
> void keyClassNotFound(String keyClassName, @Cause Exception e);
> ...
> {code}
> since the last release 1.0.0.CR3 all extending modules fail to build with the following error message:
> {quote}
> [INFO] diagnostic error: All message bundles and message logger messageMethods must have or inherit a message.
> [INFO] diagnostic error: All message bundles and message logger messageMethods must have or inherit a message.
> [INFO] diagnostic error: All message bundles and message logger messageMethods must have or inherit a message.
> [INFO] diagnostic error: All message bundles and message logger messageMethods must have or inherit a message.
> [many more..]
> {quote}
> So we had to rollback this dependency upgrade and stick with older versions.
> See also
> https://infinispan.ci.cloudbees.com/job/Infinispan-master-JDK6-tcp/268/org.infinispan$infinispan-query/console
> caused by
> https://github.com/infinispan/infinispan/blob/master/query/src/main/java/org/infinispan/query/logging/Log.java
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list