GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Make generate(Sink, Locale) abstract again by slachiewicz · Pull Request #96 · apache/maven-reporting-api

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Oct 11, 2026

Copy link
Copy Markdown
Member

Fixes #91. With both generate methods as defaults that call each other, a report that implements neither compiles and fails with StackOverflowError at runtime. generate(Sink, Locale) is abstract and undeprecated again, as in 4.0.0. generate(Sink, SinkFactory, Locale) stays a default that calls it, so a caller such as maven-site-plugin can use the multi-page method on every report, and multi-page reports override it.

This is an alternative to #94, which keeps both defaults and checks at runtime.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@slachiewicz slachiewicz added the bug Something isn't working label Oct 11, 2026
@slachiewicz
Make generate(Sink, Locale) abstract again
c8dd302
With both generate methods as defaults that call each other, a report
that implements neither compiles and fails with StackOverflowError at
runtime (#91). generate(Sink, Locale) is abstract, as in 4.0.0, and
generate(Sink, SinkFactory, Locale) stays a default that calls it, so
callers can use the multi-page method on every report.
@slachiewicz
slachiewicz force-pushed the agent/generate-no-recursion branch from 053e9c0 to c8dd302 Compare October 18, 2026 17:16
@slachiewicz
slachiewicz marked this pull request as ready for review October 18, 2026 17:16
@slachiewicz
slachiewicz merged commit 7964c58 into master Oct 18, 2026
22 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@slachiewicz
slachiewicz deleted the agent/generate-no-recursion branch October 18, 2026 17:42
@github-actions github-actions Bot assigned slachiewicz Oct 18, 2026
@github-actions github-actions Bot added this to the 4.1.0 milestone Oct 18, 2026
This was referenced Oct 18, 2026
Planned releases — Q4 2026 (Doxia stack + plugins + shared deps) apache/maven#13085
Open
Refresh the README and Javadoc, and add contributor, security and agent guides #99
Merged
@slachiewicz slachiewicz removed this from the 4.1.0 milestone Oct 26, 2026
@slachiewicz slachiewicz added the skip-changelog Skip this PR from automatically changelog generation label Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@slachiewicz slachiewicz

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

High: mutual recursion between default generate() overloads causes StackOverflowError

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@slachiewicz
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.