RFR: 8282714: synthetic arguments are being added to the constructors of static local classes

Vicente Romero vromero at openjdk.org
Thu Jul 7 19:56:22 UTC 2022


Constructors of local records and enums are being added free variables by the compiler same as it is done for local non-static classes. This is against the spec and should be fixed,

TIA

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

Commit messages:
 - removing whitespace
 - additional regression tests
 - Merge branch 'JDK-8282714' of https://github.com/vicente-romero-oracle/jdk into JDK-8282714
 - 8282714: synthetic arguments are being added to the constructors of static local classes
 - 8282714: synthetic arguments are being added to the constructors of static local classes

Changes: https://git.openjdk.org/jdk/pull/9412/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9412&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8282714
  Stats: 126 lines in 4 files changed: 107 ins; 1 del; 18 mod
  Patch: https://git.openjdk.org/jdk/pull/9412.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9412/head:pull/9412

PR: https://git.openjdk.org/jdk/pull/9412


More information about the compiler-dev mailing list