[
https://issues.jboss.org/browse/LOGTOOL-46?page=com.atlassian.jira.plugin...
]
Fred Bricon updated LOGTOOL-46:
-------------------------------
Description:
While testing [
m2e-apt|https://github.com/jbosstools/m2e-apt] on
[
hibernate-search|https://github.com/hibernate/hibernate-search], I got these strange
errors :
!jbosslogging-ap-errors.png!
All the log methods are marked as being duplicate. My gut feeling is this is due to
[MessageIdValidator being a
singleton|https://github.com/jboss-logging/jboss-logging-tools/blob/4b437...]
: all AP work in eclipse reuses the same instance between each incremental builds. So
validating the same file more than once lead to these errors.
The generator being a build tool, it doesn't make much sense to use singletons at all,
performance-wise.
was:
While testing [
m2e-apt|https://github.com/jbosstools/m2e-apt] on
[
hibernate-search|https://github.com/hibernate/hibernate-search], I got these strange
errors :
all the log methods are marked as being duplicate. My gut feeling is this is due to
[MessageIdValidator being a
singleton|https://github.com/jboss-logging/jboss-logging-tools/blob/4b437...]
: all AP work in eclipse reuses the same instance between each incremental builds. So
validating the same file more than once lead to these errors.
jboss-logging-generator singletons don't play nice with Eclipse
APT
--------------------------------------------------------------------
Key: LOGTOOL-46
URL:
https://issues.jboss.org/browse/LOGTOOL-46
Project: Log Tool
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 1.0.0.CR5
Environment: Eclipse 3.7
Reporter: Fred Bricon
Assignee: David Lloyd
Attachments: jbosslogging-ap-errors.png
While testing [
m2e-apt|https://github.com/jbosstools/m2e-apt] on
[
hibernate-search|https://github.com/hibernate/hibernate-search], I got these strange
errors :
!jbosslogging-ap-errors.png!
All the log methods are marked as being duplicate. My gut feeling is this is due to
[MessageIdValidator being a
singleton|https://github.com/jboss-logging/jboss-logging-tools/blob/4b437...]
: all AP work in eclipse reuses the same instance between each incremental builds. So
validating the same file more than once lead to these errors.
The generator being a build tool, it doesn't make much sense to use singletons at
all, performance-wise.
--
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