Skip to content
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

Use Scala reflection api instead of scalap (2.11) #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

clhodapp
Copy link

This is the 2.11-requiring version of #23. It has JacksMapper use TypeTags instead of Manifests and does not require jacks-managed locking for reflection. Due to the fact that it adds a hard dependency on Scala 2.11, I'd expect that this can't become the only branch for jacks, but I'd think that there's an outside possibility that you want to have this version and the one from #23 (or your current scalap-based version) evolve in parallel.

There are a number of reasons to prefer the Scala reflection api
over scalap for type analysis. Here are a few:

* Not an internal api
* No transitive dependency on scala-compiler.jar
* More user-friendly (It's still pretty prickly, but, of the two, it's better)
@clhodapp
Copy link
Author

I realized that my changes broke serialization of tagged types in certain cases. I fixed this and added tests to prevent the issue from recurring.

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

Successfully merging this pull request may close these issues.

1 participant