Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FPORT: Avoid CCE when scalac internally uses compileLate #61

Merged
merged 1 commit into from
Feb 23, 2016

Conversation

Duhemm
Copy link
Contributor

@Duhemm Duhemm commented Feb 11, 2016

Forward port of sbt/sbt#2453

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.
eed3si9n added a commit that referenced this pull request Feb 23, 2016
FPORT: Avoid CCE when scalac internally uses compileLate
@eed3si9n eed3si9n merged commit 768a3a8 into sbt:1.0 Feb 23, 2016
dwijnand added a commit to dwijnand/zinc that referenced this pull request Jun 26, 2017
Fixes sbt#61

* move it back into style
* use that in Tracked (uncomment some code)
* specify the style in the spec test
* must define absolute file.. (doesn't pass with relative, which is wrong imo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants