RFR 8054715: Changing the source roots and/or their filters forces a full recompile.

Andreas Lundblad andreas.lundblad at oracle.com
Thu Aug 21 08:34:26 UTC 2014

On Tue, Aug 19, 2014 at 10:52:04AM +0200, Fredrik Öhrström wrote:
> 2014-08-19 10:50 GMT+02:00 Fredrik Öhrström <oehrstroem at gmail.com>:
> > The command line stored in javac_state is only used to detect if sjavac
> > should recompile all sources from scratch. Options that do not affect the
> > output should not be stored there. "-x" "-i" are such options.
> >
> Well, "-x" and "-i" affect the output, but in the same way as usual editing
> does, ie the incremental compile handles it well, therefore changes to "-x"
> and "-i" should not trigger a full recompile of all sources.

Ok. I think have a clearer picture now. The change looks reasonable to me.

In the long run I think we should be aiming for something closer to the semantics. That is, rather than recording the command line options we should record the actions that the options triggered.

-- Andreas

More information about the compiler-dev mailing list