Browse Source
This commit fixes the algorithm used to analyze a generic parameter. If a type in the generic signature is protected, the type is return rather than the full signature. This makes sure that the appropriate package is used. Previously, it would have incorrectly used the type of the raw class. Using a generic type for such a use case is wrong, and ProtectedElement has been updated to expose a `Class` rather than a `ResolvableType`. See gh-28030pull/28170/head
Stephane Nicoll
3 years ago
4 changed files with 68 additions and 31 deletions
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
/* |
||||
* Copyright 2002-2022 the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package org.springframework.core.testfixture.aot.generator.visibility; |
||||
|
||||
import java.util.List; |
||||
|
||||
public class ProtectedGenericParameter { |
||||
|
||||
public ProtectedGenericParameter(List<ProtectedType> types) { |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue