Skip to content

AbstractMethodError when using Asciidoctor extension with AsciidoctorJ 3.0.0 #949

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
OrangeDog opened this issue Oct 31, 2024 · 3 comments
Closed
Labels
Milestone

Comments

@OrangeDog
Copy link

https://github.com/asciidoctor/asciidoctorj/releases/tag/v3.0.0

First issue I encountered was:

java.lang.AbstractMethodError: Receiver class org.springframework.restdocs.asciidoctor.DefaultAttributesPreprocessor does not define or inherit an implementation of the resolved method 'abstract org.asciidoctor.extension.Reader process(org.asciidoctor.ast.Document, org.asciidoctor.extension.PreprocessorReader)' of abstract class org.asciidoctor.extension.Preprocessor.

@bpfoster
Copy link

I see this error during build if attempting to upgrade org.asciidoctor:asciidoctor-maven-plugin to v3.1.0

@wilkinsona wilkinsona changed the title Support AsciidoctorJ 3 AbstractMethodError when using Asciidoctor extension with AsciidoctorJ 3.0.0 Oct 31, 2024
@wilkinsona wilkinsona added type: bug A bug and removed status: waiting-for-triage Untriaged issue labels Oct 31, 2024
@wilkinsona wilkinsona added this to the 3.0.x milestone Oct 31, 2024
@wilkinsona wilkinsona modified the milestones: 3.0.x, 3.0.3 Oct 31, 2024
@wilkinsona
Copy link
Member

This is hopefully fixed in the latest 3.0.3-SNAPSHOT available from https://repo.spring.io/snapshot. Please give it a try if you have a minute.

@bpfoster
Copy link

bpfoster commented Nov 1, 2024

Can't speak to OP's use case, but for mine, can confirm using asciidoctor-maven-plugin 3.1.0 and spring-restdocs-asciidoctor 3.0.3-SNAPSHOT together works great, thanks @wilkinsona!

izeye added a commit to izeye/spring-restdocs that referenced this issue Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants