fdb-record-layer icon indicating copy to clipboard operation
fdb-record-layer copied to clipboard

Rename variables called "record"

Open alecgrieser opened this issue 3 years ago • 1 comments

In Java 14, the JDK introduced "record" as a type of restricted class for "plain data carrying". See: https://docs.oracle.com/en/java/javase/14/language/records.html

That seems pretty useful, but unfortunately, it introduces the "record" keyword into the Java language. We have a fair number of variables (local variables, parameter names, etc.) called "record", as you might expect for something called the "record layer". We will need to go through and rename all of those to be Java 14 language compatible.

alecgrieser avatar Oct 08 '21 23:10 alecgrieser

Apparently record is a "contextual keyword." A variable can still be named that (just as one can say var var).

It's still a good idea to rename everything to make tools happy.

MMcM avatar Aug 10 '23 22:08 MMcM