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

Lack of information in error message "Non annotation type for activation object with descriptor" #4171

Closed
kwin opened this issue Jun 18, 2020 · 2 comments · Fixed by #4225
Closed
Assignees
Milestone

Comments

@kwin
Copy link
Contributor

kwin commented Jun 18, 2020

In case of a DS component leveraging constructor injection incorrectly like this

....
@Activate
    public MyComponent1(@Reference MyComponent2 myComponent2, MyComponent3 myComponent3) {
        ...
    }

The following error is emitted from bnd-maven-plugin:5.1.0:bnd-process

[ERROR] <path to pom.xml> [0:0]: Non annotation type for activation object with descriptor (LMyComponent2)V, type MyComponent3

The crucial information, the name of the component/class containing the invalid constructor is missing in the error message, so you have to guess which class might contain such an activate object.

@pkriens
Copy link
Member

pkriens commented Jun 19, 2020

I guess because in bndtools this is reported on the actual location ...

@bjhargrave bjhargrave self-assigned this Jul 10, 2020
@bjhargrave bjhargrave added this to the 5.2 milestone Jul 10, 2020
@bjhargrave
Copy link
Member

Can you please provide a small github repo which demonstrates the problem? Then we can investigate. Thanks.

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

Successfully merging a pull request may close this issue.

3 participants