Skip to content

Stop depending on scala-reflect #2271

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

Closed
smarter opened this issue Apr 18, 2017 · 3 comments
Closed

Stop depending on scala-reflect #2271

smarter opened this issue Apr 18, 2017 · 3 comments

Comments

@smarter
Copy link
Member

smarter commented Apr 18, 2017

After the hyper bootstrap and #2062, the remaining uses of scala-reflect are:

  • scala.reflect.io.*, should be replaced by our own abstraction layer (@felixmulder is working on one).
  • scala.reflect.internal.util.WeakHashSet used only in the backend, should be copy-pasted into the dotty sources.
smarter added a commit to dotty-staging/dotty that referenced this issue Apr 26, 2017
Since scala#2191, `dotty.tools.dotc.io.PlainFile` is no longer an alias
for  `scala.reflect.io.PlainFile` but its own class. However, the
backend still uses PlainFile from scala.reflect. This mess should soon
be fixed by getting rid of scala-reflect (scala#2271). Meanwhile, this commit
fixes ExtractDependencies to pattern match on the correct class, and
thus avoid missing dependencies.
smarter added a commit to dotty-staging/dotty that referenced this issue Apr 26, 2017
Since scala#2191, `dotty.tools.dotc.io.PlainFile` is no longer an alias
for  `scala.reflect.io.PlainFile` but its own class. However, the
backend still uses PlainFile from scala.reflect. This mess should soon
be fixed by getting rid of scala-reflect (scala#2271). Meanwhile, this commit
fixes ExtractDependencies to pattern match on the correct class, and
thus avoid missing dependencies.
@smarter
Copy link
Member Author

smarter commented Dec 10, 2017

Fixed a while ago.

@smarter smarter closed this as completed Dec 10, 2017
@allanrenucci
Copy link
Contributor

@smarter
Copy link
Member Author

smarter commented Dec 10, 2017

This one is just a dummy we create in our build, not the real scala-reflect that we used to depend on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants