Skip to content

Consider Hidden classes use cases #24847

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

Closed
LifeIsStrange opened this issue Apr 2, 2020 · 2 comments
Closed

Consider Hidden classes use cases #24847

LifeIsStrange opened this issue Apr 2, 2020 · 2 comments
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: invalid An issue that we don't feel is valid

Comments

@LifeIsStrange
Copy link

LifeIsStrange commented Apr 2, 2020

The feature called Hidden classes has been officially marked as a candidate for Java 15 which will reach general availability by the 15 september of this year.

Hidden classes are a feature that I think is specifically made for frameworks like spring.

You have far more expertise than me for considering what could be the use cases/benefits/optimizations that this feature could provide on spring, when detecting at runtime that the user supports Java 15.

https://openjdk.java.net/jeps/371

It might be used for beans or any other kind of dynamically generated classes.

Edit: BTW you could propose, influence the design of the feature while it can still change.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Apr 2, 2020
@rstoyanchev rstoyanchev added the in: core Issues in core modules (aop, beans, core, context, expression) label Nov 12, 2021
@grubeninspekteur
Copy link

Could this feature be used to fix #26266? Hidden classes are eligible for garbage collection as they are not referenced by class loaders. However, they have the drawback that they cannot be referenced by name, and thus not appear in any code (instances can be constructed using the hidden class's Lookup, however).

@snicoll
Copy link
Member

snicoll commented Oct 5, 2023

Thanks for the suggestion but without a concrete request that we can evaluate this issue is not actionable. We're following JEPs and changes to the JDK and will make benefit of hidden classes if it turns out to be useful.

As for the referenced issue, it's been fixed in the meantime.

@snicoll snicoll closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2023
@snicoll snicoll added status: invalid An issue that we don't feel is valid and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

5 participants