Skip to content
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

Compilation error "The constructor Author(long, String, String) is undefined" #15

Open
clunny-slb opened this issue Jul 12, 2019 · 0 comments

Comments

@clunny-slb
Copy link

I cloned the repo yesterday (11 July 2019) and I am facing compilation errors.

[ERROR] getAllBooks(com.github.berkleytechnologyservices.restdocs.example.book.BookRestControllerDocumentationTest)  Time elapsed: 0.001 s  <<< ERROR!
java.lang.Error: 
Unresolved compilation problems: 
        The constructor Author(long, String, String) is undefined
        The constructor Author(long, String, String) is undefined
        The method asList(T...) in the type Arrays is not applicable for the arguments (Book, Book, Book, Book, Book, Book)
        The constructor Book(long, String, int, Author) is undefined
        The constructor Book(long, String, int, Author) is undefined
        The constructor Book(long, String, int, Author) is undefined
        The constructor Book(long, String, int, Author) is undefined
        The constructor Book(long, String, int, Author) is undefined
        The constructor Book(long, String, int, Author) is undefined

        at com.github.berkleytechnologyservices.restdocs.example.book.BookRestControllerDocumentationTest.getAllBooks(BookRestControllerDocumentationTest.java:50)

It looks like they are related to changes in the lombok version causing the constructors for Author and Book to not get generated. See this github issue projectlombok/lombok#1563.

I've tried some the suggestions in the linked github issue (such as including the lombok.config file and specifying the old lombok version in the pom.xml (version 1.16.18)) but none of them resolve the issue. What is the best solution for this?

I'm running Oracle JDK 8 on a Mac.

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

No branches or pull requests

1 participant