Skip to content

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

Open
chriptus13 wants to merge 1 commit into
flamingock:masterfrom
chriptus13:fix/inherited-preview-methods
Open

chriptus13 wants to merge 1 commit into
flamingock:masterfrom
chriptus13:fix/inherited-preview-methods

Conversation

@chriptus13

@chriptus13 chriptus13 commented Oct 22, 2026 •

Copy link
Copy Markdown

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

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.
@bercianor

Copy link
Copy Markdown
Contributor

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.

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.

2 participants