Skip to content

Make getOutputName() abstract again - #95

Merged
slachiewicz merged 1 commit into
masterfrom
agent/revert-getoutputname-default
Oct 11, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/revert-getoutputname-default

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Fixes #92 by reverting #72. With both getOutputPath() and getOutputName() as default methods that call each other, a report that implements neither compiles and fails with StackOverflowError at runtime. getOutputName() is abstract again, as in 4.0.0, so the compiler catches a report that implements neither. #72 was never released, so this is no change from 4.0.0 for existing reports.

This is an alternative to #93, which keeps both defaults and fails at runtime with UnsupportedOperationException. A default shipped in 4.1.0 could not be taken back without breaking reports that stop implementing getOutputName(), so this keeps that option open until the method is removed in a major release.

This reverts commit a440099.

With both getOutputPath() and getOutputName() as default methods that
call each other, a report that implements neither compiles and fails
with StackOverflowError at runtime (#92). getOutputName() stays
abstract, as in 4.0.0, until it is removed in a major release.
@slachiewicz slachiewicz added the bug Something isn't working label Oct 11, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review October 11, 2026 23:13
@slachiewicz
slachiewicz merged commit cc99470 into master Oct 11, 2026
5 of 6 checks passed
@slachiewicz
slachiewicz deleted the agent/revert-getoutputname-default branch October 11, 2026 23:13
@github-actions github-actions Bot added this to the 4.1.1 milestone Oct 11, 2026
@slawekjaranowski slawekjaranowski modified the milestones: 4.1.1, 4.1.0 Oct 12, 2026
@slawekjaranowski

Copy link
Copy Markdown
Member

@slachiewicz @elharo how we can drop deprecated method from reporting plugins?
Each plugin still need to implement deprecated method.

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

Labels

bug Something isn't working skip-changelog Skip this PR from automatically changelog generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

High: mutual recursion between default getOutputPath()/getOutputName() causes StackOverflowError

2 participants