Skip to content

target annotation for object annotations #3599

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

Open
scabug opened this issue Jun 24, 2010 · 1 comment
Open

target annotation for object annotations #3599

scabug opened this issue Jun 24, 2010 · 1 comment

Comments

@scabug
Copy link

scabug commented Jun 24, 2010

for top-level object definitions the scala compiler generates two classes (two classfiles), on named "ObjectName$$" (containing the actual implementation) and a "mirror class" named "ObjectName" wich contains static methods that forward to the actual implementations. The second one is generated for Java compatibility only, to ease accessing object members from java.

The scala compiler copies all annotations from the object to the mirror class.

We should just make this configurable using the target-meta-annotations.

@scabug
Copy link
Author

scabug commented Jun 24, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3599?orig=1
Reporter: @lrytz
See #3115

@scala scala deleted a comment from scabug Nov 9, 2023
@scala scala deleted a comment from scabug Nov 9, 2023
@scala scala deleted a comment from scabug Nov 9, 2023
@scala scala deleted a comment from scabug Nov 9, 2023
@SethTisue SethTisue added this to the Backlog milestone Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants