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

'Cannot find implementation' for mapstruct mappers #1171

Closed
pumano opened this issue Apr 10, 2021 · 2 comments
Closed

'Cannot find implementation' for mapstruct mappers #1171

pumano opened this issue Apr 10, 2021 · 2 comments
Labels

Comments

@pumano
Copy link

pumano commented Apr 10, 2021

I prepare repo: https://github.com/pumano/vscode-mapstruct-tests
just check via gradle clean test and then try to run via vscode.

You got java.lang.ExceptionInInitializerError which Caused by: java.lang.ClassNotFoundException: Cannot find implementation for com.example.vscode.mapstructdemo.mappers.ExampleMapper

looks like path to generated code not included to tests.

Also I link this issue with issue in redhat repo: redhat-developer/vscode-java#1660

@mrvigneshmca
Copy link

Can any one tel the answer for this. In my case implementation class got generated but its not able to detect the impl class while performing unit testing

@jdneo jdneo added the upstream label Oct 18, 2021
@jdneo
Copy link
Member

jdneo commented Jan 16, 2023

The annotation processing for Gradle projects were not supported when this issue is created. And that's why tests are failed.

But now it's supported upstream: eclipse-jdtls/eclipse.jdt.ls#2319.

@jdneo jdneo closed this as completed Jan 16, 2023
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

3 participants