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

Make outer references Java-synthetic #14084

Merged
merged 3 commits into from Dec 11, 2021
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 9, 2021

Fixes #14083

I verified manually that the puter accessors are now ACC_SYNTHETIC. If someone wants to add a bytecode test, this would be good. I don't know how to make one.

@@ -0,0 +1,3 @@
class Outer {
class Inner
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can turn this into a run test with:

Suggested change
}
@main def Test =
assert(classOf[Outer#Inner].getConstructors.head.getParameters.head.isSynthetic)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. And we also want to check that the field is synthetic.

@odersky
Copy link
Contributor Author

odersky commented Dec 9, 2021

Tests fail, with logs not showing @smarter, @anatoliykmetyuk do you have an idea what could be wrong here?

@smarter
Copy link
Member

smarter commented Dec 9, 2021

seems like the runners get auto-cancelled after 15 minutes?

Fixes scala#14083

I verified manually that the puter accessors are now ACC_SYNHETIC. If someone wants to add a bytecode test, this would be good. I don't know how to make one.
This does not work yet, since the backend does not issue a ACC_SYNTHETIC for
parameters labeled Artifact.
@smarter smarter merged commit 22c3322 into scala:master Dec 11, 2021
@smarter smarter deleted the fix-14083 branch December 11, 2021 12:58
@Kordyjan Kordyjan added this to the 3.1.2 milestone Aug 2, 2023
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.

$outer is not marked synthetic
3 participants