-
Enhancement
-
Resolution: Fixed
-
P4
-
14
Both of the following are accepted by the current `javac`, but probably should not be:
```
record Test(int[] args) {
public Test(int... args) {
this.args = args;
}
}
```
and
```
record Test(int... args) {
public Test(int[] args) {
this.args = args;
}
}
```
These both probably fall into the "an explicit canonical ctor should match the record descriptor exactly" bucket. There is little benefit to such divergence.
```
record Test(int[] args) {
public Test(int... args) {
this.args = args;
}
}
```
and
```
record Test(int... args) {
public Test(int[] args) {
this.args = args;
}
}
```
These both probably fall into the "an explicit canonical ctor should match the record descriptor exactly" bucket. There is little benefit to such divergence.
- relates to
-
JDK-8236893 (IGNORE) Changes to Records specification
- Resolved