Announcement Announcement Module
Collapse
No announcement yet.
Failure to autowire base class methods due to java6 synthetic methods Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Failure to autowire base class methods due to java6 synthetic methods

    Hi,

    I have some methods in a base class that are annotated @Autowired. These property setters used to be called fine under Java5 but they are no longer called now that we compile this code with Java 6. A little investigation has shown that the failure to autowire is because of the synthetic methods that Java6 can generate, in this case because the base class had package scope and the bean class had public scope.

    Obviously, it is possible to work around this problem but is it a known Spring bug?

    - Phil
Working...
X