[jboss-jira] [JBoss JIRA] (LOGTOOL-68) @ValidIdRange min/max values should either be inherited or not validated when extending other interfaces
James Perkins (JIRA)
jira-events at lists.jboss.org
Wed Mar 6 20:42:56 EST 2013
James Perkins created LOGTOOL-68:
------------------------------------
Summary: @ValidIdRange min/max values should either be inherited or not validated when extending other interfaces
Key: LOGTOOL-68
URL: https://issues.jboss.org/browse/LOGTOOL-68
Project: Log Tool
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: James Perkins
Assignee: James Perkins
Example:
{code:java}
@ValidIdRange(min = 1, max = 10)
@MessageLogger(projectCode = "TEST")
interface ApiLogger {
@LogMessage(level = Level.ERROR)
@Message(id = 1, value = "API Error")
void apiError();
}
{code}
{code:java}
@ValidIdRange(min = 10, max = 20)
@MessageLogger(projectCode = "TEST")
interface ImplLogger extends ApiLogger {
@LogMessage(level = Level.ERROR)
@Message(id = 10, value = "Implementation Error")
void implError();
}
{code}
The above {{ImplLogger}} fails to compile due to the inherited {{void apiError()}} method using an id of {{1}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list