Skip to content

[Proposal] Extend the list of well known super classes #594

@ezanaga1

Description

@ezanaga1

When MemberCacheUtils.reflect() tries to access ZoneRegion.getId(), jvm prints:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.mitchellbosecke.pebble.attributes.MemberCacheUtils (pebble-3.1.2.jar) to method java.time.ZoneRegion.getId()
WARNING: Please consider reporting this to the maintainers of com.mitchellbosecke.pebble.attributes.MemberCacheUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

ZoneRegion is package-private but extends ZoneId which is public, and getId() is public too.

A list of well known super classes to avoid illegal reflective access could be added to PebbleEngine, in addition to those defined in MemberCacheUtils.reflect().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions