[jira] [Created] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
Use the APT to process Digester Annotations and 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.2


Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144961#comment-13144961 ]

Simone Tripodi commented on DIGESTER-158:
-----------------------------------------

urgh, looks like I didn't pay attention to the fact it is not possible to express more than one {{RetentionPolicy}} in annotations, and actually is set to {{RetentionPolicy.RUNTIME}}.
An idea could be writing a "compiler" that has nothing to do with the APT...
               

> Use the APT to process Digester Annotations and 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.2
>
>
> Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13145019#comment-13145019 ]

Matt Benson commented on DIGESTER-158:
--------------------------------------

If it would indeed be a problem to have a precompiled {{RulesModule}} for which there are available corresponding Digester annotations at runtime, can you get around it with a wrapper annotation?  i.e., is there a class-level annotation required to trigger the runtime behavior?  If so, couldn't you make *that* annotation an element of a compile-time-retention annotation, thus preventing the "trigger" annotation's runtime availability?
               

> Use the APT to process Digester Annotations and 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.2
>
>
> Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13145040#comment-13145040 ]

Simone Tripodi commented on DIGESTER-158:
-----------------------------------------

Thanks for the feedbacks Matt! :)
What it is still not clear to me about APT is that {{RetentionPolicy.RUNTIME}} annotation are visible to {{apt}} tool.
I wouldn't worry they are available at runtime as well since they are not processed unless users explicitly require loading them via the appropriate module.
As you understand, I'm an {{apt}} newbie... :P
               

> Use the APT to process Digester Annotations and 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.2
>
>
> Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13145064#comment-13145064 ]

Matt Benson commented on DIGESTER-158:
--------------------------------------

I've only used the APT a tiny bit as well... not sure I've even tried to use the code I wrote, TBH.  That said, I still don't *think* there's any reason the processor wouldn't be able to see the RT-retention annotations if that's all you're worried about.
               

> Use the APT to process Digester Annotations and 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.2
>
>
> Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13145088#comment-13145088 ]

Simone Tripodi commented on DIGESTER-158:
-----------------------------------------

As far as you know, does the {{apt}} have a tool to generate Java sources or users have to use a 3rd part template engine, such as {{Velocity}}?
Many thanks in advance!
               

> Use the APT to process Digester Annotations and 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.2
>
>
> Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13145517#comment-13145517 ]

Matt Benson commented on DIGESTER-158:
--------------------------------------

No, not that I've heard.  There is the com.sun.codemodel that more than one person has used; this is what my (again, untested) code uses.
               

> Use the APT to process Digester Annotations and 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.2
>
>
> Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13145523#comment-13145523 ]

Simone Tripodi commented on DIGESTER-158:
-----------------------------------------

Thanks a lot Matt, much more than appreciated!! I'll give a serious deep try as soon as I get the chance, if it won't be useful for the Digester at least I'll learn something new!
               

> Use the APT to process Digester Annotations and 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.2
>
>
> Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simone Tripodi updated DIGESTER-158:
------------------------------------

    Fix Version/s:     (was: 3.2)
                   3.3
   

> Use the APT to process Digester Annotations and 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
>
>
> Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13168917#comment-13168917 ]

Paul Benedict commented on DIGESTER-158:
----------------------------------------

APT is being removed from Oracle's JDK 8. Does that matter?
               

> Use the APT to process Digester Annotations and 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
>
>
> Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13169154#comment-13169154 ]

Simone Tripodi commented on DIGESTER-158:
-----------------------------------------

AFAIK JDK 8 is not on production systems yet, I would postpone the problem and provide a "temporary" solution for today's technology.
that makes me smile anyway - please don't get me wrong! - because in the dev@ ML people are still worried about maintaining JDK3... :)
               

> Use the APT to process Digester Annotations and 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
>
>
> Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Issue Comment Edited] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13168917#comment-13168917 ]

Paul Benedict edited comment on DIGESTER-158 at 12/14/11 8:24 AM:
------------------------------------------------------------------

APT is being removed from Oracle's JDK 8: http://blogs.oracle.com/darcy/entry/apt_ending. Does that matter?

               
      was (Author: paul4christ79):
    APT is being removed from Oracle's JDK 8. Does that matter?
                 

> Use the APT to process Digester Annotations and 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
>
>
> Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DIGESTER-158) Use the APT to process Digester Annotations and generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170759#comment-13170759 ]

Matt Benson commented on DIGESTER-158:
--------------------------------------

I think the problem here is that Simo and I are both such n00bs wrt annotation processing that we erroneously referred to the newer, Java 6-based facilities as APT.  ;)
               

> Use the APT to process Digester Annotations and 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
>
>
> Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (DIGESTER-158) Use Java6 annotation processing to generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Benson updated DIGESTER-158:
---------------------------------

    Summary: Use Java6 annotation processing to generate RulesModule instances at compile-time  (was: Use the APT to process Digester Annotations and generate RulesModule instances at compile-time)
   

> 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
>
>
> Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (DIGESTER-158) Use Java6 annotation processing to generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Benson updated DIGESTER-158:
---------------------------------

    Description: 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.  (was: Using the [APT Tool|http://download.oracle.com/javase/1,5.0/docs/guide/apt/GettingStarted.html] it would be possible to process Digester annotations rules and generate {{RulesModule}} instances at compile time.)
   

> 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DIGESTER-158) Use Java6 annotation processing to generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170816#comment-13170816 ]

Simone Tripodi commented on DIGESTER-158:
-----------------------------------------

yes, definitively :)
               

> 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DIGESTER-158) Use Java6 annotation processing to generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ 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

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (DIGESTER-158) Use Java6 annotation processing to generate RulesModule instances at compile-time

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/DIGESTER-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205659#comment-13205659 ]

Simone Tripodi commented on DIGESTER-158:
-----------------------------------------

always *amazing* feedbacks from you, Matt!!!

I think that the suggested multi-module approach sounds the way to go! I will take care of it as soon as I get a cycle to dedicate to Digester and moving forward this issue from its status of problem to a feature :)
               

> 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