sbt/compile
Jason Zaugg 7d4890b68a Avoid CCE when scalac internally uses compileLate. Fixes #2452
For example, when the `--sourcepath` option is provided
and the refchecks phase compiles an annotation found
on a referenced symbol from the sourcepath.

`compileLate` assumes that all non-sentinel compiler
phases can be down cast to `GlobalPhase`.

This commit changes the two phases in SBT to extend
this instead of `Phase`. This has the knock on benefit
of simplifying the phases by letting the `GlobalPhase.run`
iterator over the list of compilation units and feed them
to us one by one.

I checked that the test case failed before making each
change.
2016-02-11 16:29:09 -05:00
..
api Hash of traits: include private fields, objects and super accessors 2016-02-10 18:15:44 +01:00
inc Hash of traits: include private fields, objects and super accessors 2016-02-10 18:15:44 +01:00
integration/src/main/scala/sbt/compiler Do not create dir, if trying to output classes to a jar 2016-02-04 15:11:55 +01:00
interface Avoid CCE when scalac internally uses compileLate. Fixes #2452 2016-02-11 16:29:09 -05:00
ivy/src/main/scala/sbt/compiler Fix deprecation messages 2015-09-04 12:25:59 +02:00
persist Replace procedure syntax by explicit Unit annotation 2015-08-04 10:07:38 +02:00
src Make sbt aware of Dotty 2016-01-03 20:35:29 +01:00
NOTICE - Stuart's improvements to triggered execution 2010-07-05 12:53:37 -04:00