You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Fix detection of constructor with multiple matches
This commit uses the resolved parameter types, including detection of
inner bean definition, rather than query ConstructorArgumentValues if
it can process a given type. The latter will transparently convert the
value if necessary, leading to detecting a constructor that will not
ultimately match.
Closesgh-1035
Copy file name to clipboardexpand all lines: spring-aot/src/main/java/org/springframework/context/bootstrap/generator/bean/descriptor/BeanInstanceExecutableSupplier.java
+32-29
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,6 @@
21
21
importjava.lang.reflect.Field;
22
22
importjava.lang.reflect.Method;
23
23
importjava.util.ArrayList;
24
-
importjava.util.Arrays;
25
24
importjava.util.List;
26
25
importjava.util.function.Supplier;
27
26
importjava.util.stream.Collectors;
@@ -61,9 +60,10 @@ class BeanInstanceExecutableSupplier {
Copy file name to clipboardexpand all lines: spring-aot/src/test/java/org/springframework/context/bootstrap/generator/bean/descriptor/BeanInstanceExecutableSupplierTests.java
+89-2
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,27 @@
1
+
/*
2
+
* Copyright 2019-2021 the original author or authors.
3
+
*
4
+
* Licensed under the Apache License, Version 2.0 (the "License");
5
+
* you may not use this file except in compliance with the License.
6
+
* You may obtain a copy of the License at
7
+
*
8
+
* https://www.apache.org/licenses/LICENSE-2.0
9
+
*
10
+
* Unless required by applicable law or agreed to in writing, software
11
+
* distributed under the License is distributed on an "AS IS" BASIS,
12
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+
* See the License for the specific language governing permissions and
Copy file name to clipboardexpand all lines: spring-aot/src/test/java/org/springframework/context/bootstrap/generator/sample/constructor/SampleBeanWithConstructors.java
+3-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2021 the original author or authors.
2
+
* Copyright 2019-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
0 commit comments