RFR: 8285935: Spurious lint warning for static method accessed through instance qualifier

Vicente Romero vromero at openjdk.org
Fri Jul 15 17:18:29 UTC 2022


Please review this simple fix which is adding a more precise, I hope, warning for the case when a static method or field is being accessed using an anonymous class instance.

TIA

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

Commit messages:
 - 8285935: Spurious lint warning for static method accessed through instance qualifier

Changes: https://git.openjdk.org/jdk/pull/9521/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9521&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8285935
  Stats: 33 lines in 6 files changed: 29 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/9521.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9521/head:pull/9521

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


More information about the compiler-dev mailing list