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

java.lang.InstantiationError for Java annotations in scala 3 #544

Open
xeppaka opened this issue Aug 19, 2024 · 0 comments
Open

java.lang.InstantiationError for Java annotations in scala 3 #544

xeppaka opened this issue Aug 19, 2024 · 0 comments

Comments

@xeppaka
Copy link

xeppaka commented Aug 19, 2024

When CollectAnnotations is used to get list of annotations an exception is thrown for Java annotation.

run and see highlighted stacktrace: https://scastie.scala-lang.org/GtP0A079Riuh3W7QGm53Og

the problem appears after asExpr when result of macro is used later:

.map(_.asExpr.asInstanceOf[Expr[Any]])

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

No branches or pull requests

1 participant