Skip to content

Fix emission of annotations #1763

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 4 commits into from
Dec 16, 2016
Merged

Conversation

smarter
Copy link
Member

@smarter smarter commented Nov 30, 2016

Review by @DarkDimius

@smarter
Copy link
Member Author

smarter commented Nov 30, 2016

Looks like this unmasked an issue with the inline body annotations, investigating...

@DarkDimius
Copy link
Contributor

Backend-wise LGTM

`isRuntimeVisible` and `retentionPolicyOf` had two different ways to get
the retention policy of an annotation and they were both wrong.
Fix retentionPolicyOf` and use it in `isRuntimeVisible`
Previously we replaced them by ConcreteAnnotation so they became regular
annotations and could be emitted in some cases. They need to keep being BodyAnnotation.
@smarter smarter changed the title Fix #1741: Annotations were never emitted Fix emission of annotations Nov 30, 2016
@smarter
Copy link
Member Author

smarter commented Nov 30, 2016

@smarter
Copy link
Member Author

smarter commented Dec 1, 2016

Alright, #1741 is fixed by the latest commit, and I added a test to test that the tests are testing something :)

This is necessary for correct incremental recompilation but is also used
by sbt to find tests to run (for junit they should be annotated @org.junit.Test).

I added an sbt scripted test to verify that JUnit now works, to run it:
$ sbt
> scripted discovery/test-discovery
@liufengyun
Copy link
Contributor

Well done @smarter 👍 !

@smarter
Copy link
Member Author

smarter commented Dec 14, 2016

Ping @DarkDimius , would you mind review the remaining commits?

@DarkDimius
Copy link
Contributor

LGTM

@DarkDimius DarkDimius merged commit 653698e into scala:master Dec 16, 2016
@allanrenucci allanrenucci deleted the fix/annotations branch December 14, 2017 19:21
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