@ -305,10 +305,6 @@ public class AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBean
@@ -305,10 +305,6 @@ public class AutowiredAnnotationBeanPostProcessor extends InstantiationAwareBean
". Found constructor with 'required' Autowired annotation already: "+
requiredConstructor);
}
if(candidate.getParameterCount()==0){
thrownewIllegalStateException(
"Autowired annotation requires at least one argument: "+candidate);
@ -2184,6 +2184,15 @@ public class AutowiredAnnotationBeanPostProcessorTests {
@@ -2184,6 +2184,15 @@ public class AutowiredAnnotationBeanPostProcessorTests {
@ -3411,7 +3420,14 @@ public class AutowiredAnnotationBeanPostProcessorTests {
@@ -3411,7 +3420,14 @@ public class AutowiredAnnotationBeanPostProcessorTests {
@ -1087,7 +1094,6 @@ public class InjectAnnotationBeanPostProcessorTests {
@@ -1087,7 +1094,6 @@ public class InjectAnnotationBeanPostProcessorTests {
@Inject
privateMap<String,TestBean>testBeanMap;
publicMap<String,TestBean>getTestBeanMap(){
returnthis.testBeanMap;
}
@ -1346,4 +1352,12 @@ public class InjectAnnotationBeanPostProcessorTests {
@@ -1346,4 +1352,12 @@ public class InjectAnnotationBeanPostProcessorTests {