Skip to content

Proxy misses inherited methods - superclass fields stay null #1061

Description

@pfivanov

Problem

When proxying concrete classes, inherited methods are not intercepted. This causes superclass fields to remain null because the proxy is created via Objenesis without calling constructors.

Proposed Fix

  • ProxyFactory.java: Match methods from entire class hierarchy, not just the target class
  • Invocation.java: Walk superclass chain to find inherited methods

Discussion

I have a proposed fix for discussion - #1060

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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