Announcement Announcement Module
Collapse
No announcement yet.
Autowiring of generic collections stop working after switch to 4.0.4 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Autowiring of generic collections stop working after switch to 4.0.4

    Here is one of the numerous issues I met after replacing 3.2.8 with 4.0.4

    public interface SignCredential {
    }

    public interface SignService<T extends SignCredential> {
    }

    public class SignServiceLocator {

    // getting Spring exception that no candidates are found; it works fine in spring 3.2.*
    @Autowired
    public void setEsignServices(Collection<SignService<SignCreden tial>> esignServices) {
    }

    // here is my workaround that does work in 4.0.4
    @Autowired
    public void setEsignServices(Collection<SignService<?>> esignServices) {
    }

    }

    Thanks,
    Maksym

  • #2
    This question is probably a better candidate for StackOverflow, perhaps with the "spring" tag. Could you post your question there?

    If you don't get a solution to your issue there, could you submit a test case here and create a JIRA issue? Thanks!

    The forums are moving to stackoverflow, a page explaining all this will be available there in a few days: http://spring.io/questions

    Comment

    Working...
    X