RFR: 7033677: potential cast error in MemberEnter

Archie L. Cobbs duke at openjdk.org
Thu Feb 16 19:19:03 UTC 2023

In an `import` statement, the thing imported is always a `JCFieldAccess` (it's not legal in Java to import a simple name).

Therefore the type of `JCFieldAccess.qualid`, which is currently `JCTree`, is unnecessarily wide and can be narrowed to `JCFieldAccess`.


Commit messages:
 - Narrow the type of JCImport.qualid from JCTree to JCFieldAccess.

Changes: https://git.openjdk.org/jdk/pull/12606/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12606&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-7033677
  Stats: 15 lines in 7 files changed: 1 ins; 0 del; 14 mod
  Patch: https://git.openjdk.org/jdk/pull/12606.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12606/head:pull/12606

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

More information about the compiler-dev mailing list