javac --module option and stale classes
Jonathan Gibbons
jonathan.gibbons at oracle.com
Wed Jul 29 16:39:16 UTC 2020
On 7/29/20 5:49 AM, Christian Stein wrote:
> I wonder whether the logic at [1] is a) the sole place that
> controls this feature and b) whether it can be enhanced
> to also prune stale classes from previous javac runs.
That should be the only place.
The minor complication about pruning stale classes is that
it is not a 1-1 mapping from .java to .class files, and that for
a perfect job, you have to read the .class file to determine the
likely origin of the .java file. For a good but not perfect job,
you can apply heuristics to the filename, and whether it contains
'$' characters or not.
-- Jon
More information about the jigsaw-dev
mailing list