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

a bug #1804

Closed
funwhl opened this issue Aug 3, 2018 · 4 comments
Closed

a bug #1804

funwhl opened this issue Aug 3, 2018 · 4 comments

Comments

@funwhl
Copy link

funwhl commented Aug 3, 2018

@Setter(onMethod_ = {@Autowired}) on a type ,it compiler correct but delombok dosnot generate @Autowired

@victorwss
Copy link
Contributor

Additional information like environment, java version, lombok version and a minimal code that reproduces the problem would be really welcome.

@funwhl
Copy link
Author

funwhl commented Aug 19, 2018

os: windows10、ide: inteliJ idea 2018.1.6、lombok plugin: 0.19-2018.1 、jdk: 1.8.0_40、 lombok: 1.18.2
use inteliJ idea delombok

@Setter(onMethod_ = {@Autowired})
//@Setter(onMethod=@__({@Autowired}))
public class Test {
private String param1;
private String param2;
}

@rspilker
Copy link
Collaborator

Alternatively, in the edge release we introduced lombok.copyableAnnotations. You could consider adding @AutoWired to the list, and put them on the fields.

@rspilker
Copy link
Collaborator

In hindsight, I think that it would put them on the parameter, not on then method.

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

3 participants