JEP draft: Implicit Classes and Enhanced Main Methods (Preview)

Remi Forax forax at univ-mlv.fr
Wed Feb 15 18:18:45 UTC 2023


> From: "Ron Pressler" <ron.pressler at oracle.com>
> To: "amber-spec-experts" <amber-spec-experts at openjdk.org>
> Sent: Wednesday, February 15, 2023 5:14:21 PM
> Subject: JEP draft: Implicit Classes and Enhanced Main Methods (Preview)

> Hi.

> I've published a JEP draft, Implicit Classes and Enhanced Main Methods (Preview)
> ( [ https://openjdk.org/jeps/8302326 | https://openjdk.org/jeps/8302326 ] )
> based on Brian’s article, Paving the On-Ramp ( [
> https://openjdk.org/projects/amber/design-notes/on-ramp |
> https://openjdk.org/projects/amber/design-notes/on-ramp ] ).

> System.out.println and possible improvements to the import experience in general
> will be the subject of a separate JEP.

What is the behaviors of the compiler for 

var hello() { } 
var hello() { return; } 
var hello() { return null; } 
var foo; 
var foo = null; 

record hello() { } 
record hello() { return; } 
record hello() { return null; } 
record foo; 
record foo = null; 

record main() { } 
record main() { return; } 
static record main() { } 
static record main() { return; } 
record main; 
record main = null; 

> Comments are welcome.

> — Ron

Rémi 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-spec-experts/attachments/20230215/dfaf682e/attachment.htm>


More information about the amber-spec-experts mailing list