Nov 15th, 2012, 08:16 AM
Failure to autowire base class methods due to java6 synthetic methods
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?