You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Benson (Commented) (JIRA)" <ji...@apache.org> on 2012/02/10 17:56:59 UTC
[jira] [Commented] (DIGESTER-158) Use Java6 annotation processing
to generate RulesModule instances at compile-time
[ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205543#comment-13205543 ]
Matt Benson commented on DIGESTER-158:
--------------------------------------
This was left as a problem: Simo's initial implementation of this was done against Java 5 APT. [digester] currently supports Java 5, but its CI systems (Continuum in particular) are using a Java 6 installation. To be forward-looking and use the Java 6 {{Processor}}, etc. APIs, is it reasonable to say:
- [digester]'s runtime code uses only Java 5 APIs
- [digester] includes a Java 6 {{Processor}} that "precompiles" [digester] annotations into configured {{RulesModule}}s.
- [digester]'s build is configured with source 1.6, target 1.5
?
Is this a workable approach, or does the {{Processor}} stuff break down on the third point? If so, would it be simpler to convert [digester] to a multimodule project and provide the precompilation {{Processor}} as an independent module that depends on 1.6 even though the core does not? I feel favorable towards this approach because it makes enabling the precompilation a very explicit act, and gives the user the opportunity to exclude the {{Processor}} from his runtime deployment.
Matt
P.S. the {{com.sun.codemodel}} code I mentioned before is in fact working now ;)
> Use Java6 annotation processing to generate RulesModule instances at compile-time
> ---------------------------------------------------------------------------------
>
> Key: DIGESTER-158
> URL: https://issues.apache.org/jira/browse/DIGESTER-158
> Project: Commons Digester
> Issue Type: New Feature
> Affects Versions: 3.2
> Reporter: Simone Tripodi
> Assignee: Simone Tripodi
> Fix For: 3.3
>
>
> Implement a [http://docs.oracle.com/javase/6/docs/api/javax/annotation/processing/Processor.html] to process Digester annotations rules and generate {{RulesModule}} instances at compile time.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira