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

Provide some sort of interop mechanism between Scala reflection and Java reflection #7317

Closed
scabug opened this issue Mar 31, 2013 · 3 comments

Comments

@scabug
Copy link

scabug commented Mar 31, 2013

(for some reason the form only lets me set priority to blocker, even though it's not even close to that)

I have some values from java.lang.reflect.* and would like to be able to use Scala reflection goodness with them. It might be nice to go the other way around, too.

For example (as explained in http://stackoverflow.com/questions/15712097/using-scala-reflection-with-java-reflection) I might have a java.lang.reflect.Method and want to determine if there are any Scala deprecation annotations attached to it. Java's reflection annotation mechanism can't see Scala annotations, so I somehow need to get a Scala Symbol out of that Method object, and doing so is difficult right now.

@scabug
Copy link
Author

scabug commented Mar 31, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7317?orig=1
Reporter: Dan Peebles (mysteriousdan)

@SethTisue
Copy link
Member

scala.reflect isn't really changing anymore. pull requests in this area can still be accepted, but let's keep scala/bug focused on bugs. enhancements should be discussions on https://contributors.scala-lang.org

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

3 participants