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

Do not return java outline dummy constructor in primaryConstructor #22104

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jchyb
Copy link
Contributor

@jchyb jchyb commented Dec 3, 2024

Fixes #20052
Java outline parser phase for various reasons adds a dummy constructor to java classes compiling simultenously from scalac. Since they provide no information to the user and are overall misleading (with always having the same fake flags and parameters), we filter them out and return the first constructor that can be found in the source.
This is also what happened up to this point when running the macro with a java classfile on the classpath instead, since those dummy constructors cannot be found there.

Java outline parser phase for various reasons adds a dummy
constructor to java classes compiling simultenously from scalac.
Since they provide no information to the user and are overall
misleading (with always having the same fake flags and parameters), we
filter them out and return the first constructor that can be found in
the source.
This is also what happened up to this point when running the macro with
a java classfile on the classpath instead, since those dummy
constructors cannot be found there.
@jchyb jchyb marked this pull request as ready for review December 4, 2024 10:55
@jchyb jchyb requested a review from hamzaremmal December 5, 2024 12:02
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.

Incorrect quotes reflection api flags set on Java symbols
2 participants