there is a bug in lworld and due to it javac accepts records with compact 
constructors that contain invocations to the super constructor. This is not 
allowed by the spec. This PR is fixing this issue,

TIA

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

Commit messages:
 - adding test
 - Merge branch 'lworld' into JDK-8370634
 - 8370634: [lworld] super should not be allowed in compact constructors

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

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

Reply via email to