Skip to content

Add WithData listener delegates support - #993

Merged
masesdevelopers merged 2 commits into
masterfrom
974-use-listenershallmanageevent-feature-of-jvmbridgelistener-to-early-discard-unused-methods-fix-second-gate
Apr 25, 2026
Merged

masesdevelopers merged 2 commits into
masterfrom
974-use-listenershallmanageevent-feature-of-jvmbridgelistener-to-early-discard-unused-methods-fix-second-gate

Conversation

@masesdevelopers

@masesdevelopers masesdevelopers commented Apr 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Update AllPackageClassesStubClassListener template to document two new delegates (ListenerShallManageEventIndexWithData and ListenerShallManageEventNameWithData) and include them in the ListenerShallManageEvent logic. This ensures index-based (no string conversion) and name-based WithData handlers are recognized alongside existing checks, allowing lower-overhead event handling paths.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Update AllPackageClassesStubClassListener template to document two new delegates (ListenerShallManageEventIndexWithData and ListenerShallManageEventNameWithData) and include them in the ListenerShallManageEvent logic. This ensures index-based (no string conversion) and name-based WithData handlers are recognized alongside existing checks, allowing lower-overhead event handling paths.
@masesdevelopers masesdevelopers self-assigned this Apr 25, 2026
@masesdevelopers masesdevelopers added bug Something isn't working JNetReflector JNetReflector related issue .NET Pull requests that update .net code labels Apr 25, 2026
@masesdevelopers
masesdevelopers merged commit 01f5617 into master Apr 25, 2026
5 checks passed
@masesdevelopers
masesdevelopers deleted the 974-use-listenershallmanageevent-feature-of-jvmbridgelistener-to-early-discard-unused-methods-fix-second-gate branch April 25, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working JNetReflector JNetReflector related issue .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use ListenerShallManageEvent feature of JVMBridgeListener to early discard unused methods

1 participant