[jdk21u-dev] RFR: 8318626: GetClassFields does not filter out ConstantPool.constantPoolOop field

Severin Gehwolf sgehwolf at openjdk.org
Fri May 9 12:23:55 UTC 2025


On Wed, 30 Apr 2025 23:10:18 GMT, Satyen Subramaniam <ssubramaniam at openjdk.org> wrote:

> Backporting JDK-8318626: GetClassFields does not filter out ConstantPool.constantPoolOop field. Fix adjusts FilteredFieldStream implementation to handle cases when filtered fields is the last field of the class. Adds two tests for functionality. Ran GHA Sanity Checks, local Tier 1 and 2, and new tests. Patch is clean.

@satyenme Please explain why this backport is important (it only shows up for JVMTI usage for some use-cases, right?) While it's a bug, it doesn't seem critical enough for a 21 backport. Then we might reconsider.

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1727#issuecomment-2866344175


More information about the jdk-updates-dev mailing list