Skip to content

JNetReflector updates class generation to manage events using index#915

Merged
masesdevelopers merged 20 commits intomasterfrom
856-investigate-on-the-issue-and-the-solution-proposed-about-exceptions-raised
Apr 6, 2026
Merged

JNetReflector updates class generation to manage events using index#915
masesdevelopers merged 20 commits intomasterfrom
856-investigate-on-the-issue-and-the-solution-proposed-about-exceptions-raised

Conversation

@masesdevelopers
Copy link
Copy Markdown
Contributor

@masesdevelopers masesdevelopers commented Apr 3, 2026

Description

  • JNetReflector updates class generation to manage events using index

  • Updates Java event listeners class generation and make fields volatile and guard HasOverride state
    Add a volatile _hasOverrideSet flag and mark fields volatile to improve thread-safety. Throw IllegalStateException from getters if the .NET side never set HasOverride. setHasOverride and the combined setReturnData(boolean,Object) now mark _hasOverrideSet; the single-arg setReturnData(Object) is disabled and throws to prevent improper invocation from the .NET side.

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.

Add a volatile _hasOverrideSet flag and mark fields volatile to improve thread-safety. Throw IllegalStateException from getters if the .NET side never set HasOverride. setHasOverride and the combined setReturnData(boolean,Object) now mark _hasOverrideSet; the single-arg setReturnData(Object) is disabled and throws to prevent improper invocation from the .NET side.
@masesdevelopers masesdevelopers linked an issue Apr 3, 2026 that may be closed by this pull request
@masesdevelopers masesdevelopers changed the title Updates Java event listeners class generation and make fields volatile and guard HasOverride state JNetReflector updates class generation to manage events using index Apr 4, 2026
@masesdevelopers masesdevelopers merged commit 5ffac82 into master Apr 6, 2026
11 checks passed
@masesdevelopers masesdevelopers deleted the 856-investigate-on-the-issue-and-the-solution-proposed-about-exceptions-raised branch April 6, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add event trigger based on index Investigate on the issue and the solution proposed about exceptions raised

1 participant