8236695: java.lang.Record should be declared with an explicit constructor

Reviewed-by: psandoz, chegar
This commit is contained in:
Joe Darcy 2020-01-07 09:17:51 -08:00
parent 3e9a17c53e
commit af4ad226c8

View file

@ -90,6 +90,11 @@ package java.lang;
@jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.RECORDS, @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.RECORDS,
essentialAPI=true) essentialAPI=true)
public abstract class Record { public abstract class Record {
/**
* Constructor for record classes to call.
*/
protected Record() {}
/** /**
* Indicates whether some other object is "equal to" this one. In addition * Indicates whether some other object is "equal to" this one. In addition
* to the general contract of {@link Object#equals(Object)}, * to the general contract of {@link Object#equals(Object)},