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

Add private inteface methods parsing in JavaParser #14643

Merged
merged 3 commits into from
Mar 9, 2022

Conversation

rochala
Copy link
Contributor

@rochala rochala commented Mar 8, 2022

Since java 9, it is allowed to declare private interface methods.
Scala2 issue: scala/bug#12393

Fixes #12956

@smarter
Copy link
Member

smarter commented Mar 8, 2022

Does using PrivateMethod instead of Private make a difference here? I would expect they'd be the same since PrivateMethod is defined as Method | Private and we're only dealing with methods anyway.

@rochala
Copy link
Contributor Author

rochala commented Mar 9, 2022

It does not make any difference, but doing an additional check if it's a method, and as you said we're dealing only with methods so it can be replaced with Private and still work as intended. I'm going to revert that to first version with Flags.Private

Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

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

Thanks!

@smarter smarter changed the title Add private inteface methods parsing in Javaparser Add private inteface methods parsing in JavaParser Mar 9, 2022
@smarter smarter enabled auto-merge (squash) March 9, 2022 10:19
@smarter smarter merged commit 4fca4d8 into scala:main Mar 9, 2022
smarter added a commit to dotty-staging/dotty that referenced this pull request Mar 9, 2022
This disables the test added in scala#14643 which broke the CI because it requires
Java 9+ and unfortunately we don't have a way to selectively run tests on
specific Java versions currently.
@smarter smarter mentioned this pull request Mar 9, 2022
@Kordyjan Kordyjan added this to the 3.1.3 milestone Aug 1, 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.

Parse concrete private interface methods in Java
3 participants