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

[24] JEP 495: Implicitly Declared Classes and Instance Main Methods (Fourth Preview) #2902

Closed
Tracked by #2899
mpalat opened this issue Sep 4, 2024 · 5 comments
Closed
Tracked by #2899
Assignees
Milestone

Comments

@mpalat
Copy link
Contributor

mpalat commented Sep 4, 2024

ref: https://openjdk.org/jeps/495
JLS Changes tracked at: https://cr.openjdk.org/~gbierman/jep495/latest/

Summary
Evolve the Java programming language so that beginners can write their first programs without needing to understand language features designed for large programs. Far from using a separate dialect of the language, beginners can write streamlined declarations for single-class programs and then seamlessly expand their programs to use more advanced features as their skills grow. Experienced developers can likewise enjoy writing small programs succinctly, without the need for constructs intended for programming in the large. This is a preview language feature.

History
Implicitly declared classes and instance main methods were first proposed as a preview feature by JEP 445, delivered in JDK 21. The feature was previewed again by JEP 463, with significant changes based on feedback, and delivered in JDK 22. A third preview proposed by JEP 477,..in Java 23

JEP 477 support in JDT Core is captured in issue #2474

@mpalat
Copy link
Contributor Author

mpalat commented Sep 4, 2024

@jarthana tentatively assigned to you - please feel free to reassign

@stephan-herrmann
Copy link
Contributor

JLS issue to watch: https://bugs.openjdk.org/browse/JDK-8335992

@mpalat mpalat changed the title [24] JEP draft: Implicitly Declared Classes and Instance Main Methods (Fourth Preview) [24] JEP 495: Implicitly Declared Classes and Instance Main Methods (Fourth Preview) Nov 4, 2024
@stephan-herrmann
Copy link
Contributor

@jarthana have you checked for spec changes yet? Let me know in particular if anything in the spec needs clarification.

@jarthana
Copy link
Member

@jarthana have you checked for spec changes yet? Let me know in particular if anything in the spec needs clarification.

Except the name change (of the feature), I don't see any change to the spec. So, I think we are good here.

@stephan-herrmann
Copy link
Contributor

@jarthana have you checked for spec changes yet? Let me know in particular if anything in the spec needs clarification.

Except the name change (of the feature), I don't see any change to the spec. So, I think we are good here.

Great. Since specifications have reached state Public Review Specification — DRAFT 2 and not much happening on mailing lists, I think you can actually close this issue :)

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

No branches or pull requests

3 participants