Integrated: 8316561: [lw5] class file attribute NullRestricted shouldn't be generated for arrays

Vicente Romero vromero at openjdk.org
Tue Sep 19 23:24:22 UTC 2023


This PR is fixing a bug, basically for code like:

value class V {
    V[]! va;
    public implicit V();
}

the compiler shouldn't generate a NullRestricted attribute for field `va` in the future we probably issue a warning or a compiler error for this code pattern.

-------------

Commit messages:
 - 8316561: [lw5] class file attribute NullRestricted shouldn't be generated for arrays

Changes: https://git.openjdk.org/valhalla/pull/928/files
 Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=928&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8316561
  Stats: 12 lines in 2 files changed: 11 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/valhalla/pull/928.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/928/head:pull/928

PR: https://git.openjdk.org/valhalla/pull/928



More information about the valhalla-dev mailing list