Skip to content

Emit an error instead of crashing on incorrect Java annotation; support non-literal annot params with constant types #7495

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

Merged
merged 2 commits into from
Nov 7, 2019

Conversation

smarter
Copy link
Member

@smarter smarter commented Nov 4, 2019

No description provided.

@smarter smarter requested a review from nicolasstucki November 4, 2019 21:20
@smarter smarter changed the title Emit an error instead of crashing on incorrect Java annotation Emit an error instead of crashing on incorrect Java annotation; support non-literal annot params with constant types Nov 4, 2019
This is similar to the error that scalac emits, though it emits at typer
instead of backend.
@smarter smarter requested review from odersky and removed request for nicolasstucki November 4, 2019 22:42
@smarter smarter assigned odersky and unassigned nicolasstucki Nov 4, 2019
@odersky odersky requested a review from lrytz November 6, 2019 15:32
@odersky
Copy link
Contributor

odersky commented Nov 6, 2019

LGTM. Maybe @lrytz could also have a look at it.

@odersky odersky assigned lrytz and unassigned odersky Nov 6, 2019
@lrytz
Copy link
Member

lrytz commented Nov 7, 2019

LGTM, seems similar to what scalac does.

@smarter smarter merged commit c149aaf into scala:master Nov 7, 2019
@smarter smarter deleted the java-annots-neg branch November 7, 2019 10:13
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.

4 participants