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

uncomment and fix java annotation tests #559

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

hughsimpson
Copy link
Contributor

@hughsimpson hughsimpson commented Jan 11, 2025

I'm not sure if this is somehow a really stupid way of doing it, but it seems to fix the tests, as well as some of my downstream issues *. Changing the type of the collected annotations without changing the api is probably dumb, but I figured it signalled intent without breaking any compatibility. It's not really necessary is it. Well anyway let me know your thoughts.

* I say 'some', because there's still an issue with scala annotations - I think it happens if you annotate both a case class and a parent trait with the same annotation, but with this change I don't have to worry about that problem because I can just use the upstream java annotations instead of trying to work around the issue. Might make a follow-up at some point...

@hughsimpson
Copy link
Contributor Author

Apologies, had missed that formatting hadn't been applied. fixed and pushed

@adamw
Copy link
Member

adamw commented Jan 13, 2025

Well if the tests pass, it works! :)

@adamw adamw merged commit 9a4cfc6 into softwaremill:scala3 Jan 13, 2025
5 checks passed
@hughsimpson hughsimpson deleted the annotation_tests branch January 13, 2025 08:41
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.

2 participants