This discussion is archived
2 Replies Latest reply: Oct 9, 2009 1:11 PM by 843793 RSS

How many rounds if no code generated ?

843793 Newbie
Currently Being Moderated
Hi,

If my annotation processor does not generate java code, is there a possibility to see more than one round
executed ?

Thanks for help !

Edited by: PierreBris on Oct 9, 2009 8:27 AM
  • 1. Re: How many rounds if no code generated ?
    843793 Newbie
    Currently Being Moderated
    PierreBris wrote:
    Hi,

    If my annotation processor does not generate java code, is there a possibility to see more than one round
    executed ?
    The round models of apt and javac (with JSR 269) are a bit different; see p. 57 of
    http://blogs.sun.com/darcy/resource/J1_2006-BOF-0606.pdf
    for a diagram.

    For javac, there will be a first round with the initial files as input and then, if there are no additional files generated, a second round with roundEnv.processingOver() equal to true.
  • 2. Re: How many rounds if no code generated ?
    843793 Newbie
    Currently Being Moderated
    Thanks a lot !
    The slides provide very interesting information and totally answer my question.

    Thanks again

    Edited by: PierreBris on Oct 9, 2009 1:10 PM

    Edited by: PierreBris on Oct 9, 2009 1:10 PM