JEP 359: Records

Jonathan Rosenne jr at qsm.co.il
Fri Oct 11 19:14:19 UTC 2019


Thanks for your reply.

So will classes such as Integer and other suitable classes in the JDK be upgraded to records? Can they? And what about existing classes in the code base that no one wants to touch? The IDE only does things to classes you edit.

Best Regards,

Jonathan Rosenne

From: John Rose [mailto:john.r.rose at oracle.com]
Sent: Friday, October 11, 2019 10:10 PM
To: Jonathan Rosenne
Cc: amber-dev at openjdk.java.net
Subject: Re: JEP 359: Records

On Oct 11, 2019, at 10:18 AM, Jonathan Rosenne <jr at qsm.co.il<mailto:jr at qsm.co.il>> wrote:

May I suggest that the compiler detect suitable existing classes that could be records and treat them as such? For example the often used Point class, or the Integer class?

This is a job for the IDE, not the language processor.  IDEs are good at suggesting
improvements like this.

For the reasons Brian explained, the IDE must then ask the user for permission
to formally and explicitly mark the class as a record.



More information about the amber-dev mailing list