Skip to content

fix(preview): inherit annotated methods from change superclasses - #983

Merged
bercianor merged 3 commits into
flamingock:masterfrom
chriptus13:fix/inherited-preview-methods
Nov 26, 2026
Merged

bercianor merged 3 commits into
flamingock:masterfrom
chriptus13:fix/inherited-preview-methods

Conversation

@chriptus13

@chriptus13 chriptus13 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Fix preview generation to find annotated apply and rollback methods inherited from a change superclass.
  • Apply the fix to both current Flamingock changes and legacy Mongock change units.
  • Add regression tests and shared test utilities for compiling annotated Java fixtures.

Testing

  • Added coverage for inherited apply and rollback methods in both preview builders.

Related issues

#979

@bercianor

Copy link
Copy Markdown
Member

Thanks for your contribution!

The current changes address the preview functionality. However, there are still two additional aspects that need to be covered for the feature to work end-to-end:

  1. Runtime method resolution: Execution and rollback methods declared in superclasses need to be properly resolved at runtime.
  2. GraalVM native image support: Inherited methods need to be properly registered for reflection on their declaring classes.

We're reviewing how best to address these remaining pieces to ensure the feature works correctly across all supported scenarios.

@bercianor
bercianor force-pushed the fix/inherited-preview-methods branch from f0b60ba to effb98c Compare November 2, 2026 14:12
@chriptus13

Copy link
Copy Markdown
Contributor Author

Hey @bercianor any update on this?

chriptus13 and others added 3 commits November 25, 2026 15:24
Resolve inherited apply and rollback methods when building previews for
both current Flamingock changes and legacy Mongock change units. Add
coverage for each path using shared annotation-processing test utilities.
@osantana85
osantana85 force-pushed the fix/inherited-preview-methods branch from 06701d9 to 91f19b4 Compare November 25, 2026 15:24
@bercianor
bercianor merged commit 2671a54 into flamingock:master Nov 26, 2026
4 of 6 checks passed
@bercianor

Copy link
Copy Markdown
Member

Hi @chriptus13,

We've now incorporated the fix, and it will be included in the upcoming 1.5.0 release.

We're still wrapping up a few remaining details before releasing it. I'll let you know in #979 as soon as 1.5.0 is available.

Thanks again for taking the time to investigate the issue, contribute the fix, and provide regression tests. We really appreciate your contribution!

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.

3 participants