language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
spring-projects
spring-framework
211241befe1c6c7f2999b94685d47dc75d5c645e.json
Upgrade Ubuntu version in CI image
ci/images/ci-image/Dockerfile
@@ -1,4 +1,4 @@ -FROM ubuntu:focal-20220531 +FROM ubuntu:focal-20220801 ADD setup.sh /setup.sh ADD get-jdk-url.sh /get-jdk-url.sh
false
Other
spring-projects
spring-framework
332d4a4c9c94f6b83dc9011b1b48e1e4318b1a2e.json
Apply same order than original BPP This commit updates ImportAwareAotBeanPostProcessor to be priority ordered, with the same order as its original BeanPostProcessor. This makes sure that infrastructure beans can be post-processed if necessary See gh-28915
spring-context/src/main/java/org/springframework/context/annotation/ImportAwareAotBeanPostProcessor.java
@@ -20,6 +20,8 @@ import java.util.Map; import org.springframework.beans.factory.config.BeanPostProcessor; +import org.springframework.core.Ordered; +import org.springframework.core.PriorityOrdered; import org.springframework.core.type.classreading.CachingMetadataReaderFactory; import org.springframework.core.typ...
true
Other
spring-projects
spring-framework
332d4a4c9c94f6b83dc9011b1b48e1e4318b1a2e.json
Apply same order than original BPP This commit updates ImportAwareAotBeanPostProcessor to be priority ordered, with the same order as its original BeanPostProcessor. This makes sure that infrastructure beans can be post-processed if necessary See gh-28915
spring-context/src/test/java/org/springframework/context/annotation/ConfigurationClassPostProcessorAotContributionTests.java
@@ -31,6 +31,7 @@ import org.springframework.aot.test.generator.compile.Compiled; import org.springframework.aot.test.generator.compile.TestCompiler; import org.springframework.beans.BeansException; +import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.aot.BeanFactoryI...
true
Other
spring-projects
spring-framework
c9faff74917ae78b16cc76c1f56447004208fe9a.json
Apply property hints to FactoryBean if necessary This commit handles a BeanDefinition that configures the FactoryBean as the "beanClass", while exposing the actual type in "resolvedType". While unusual, this is required in certain cases when the factory bean exposes generic information itself. Previously, the hints f...
spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionPropertiesCodeGenerator.java
@@ -40,6 +40,7 @@ import org.springframework.beans.ExtendedBeanInfoFactory; import org.springframework.beans.MutablePropertyValues; import org.springframework.beans.PropertyValue; +import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.config.BeanDefinition; import org.sprin...
true
Other
spring-projects
spring-framework
c9faff74917ae78b16cc76c1f56447004208fe9a.json
Apply property hints to FactoryBean if necessary This commit handles a BeanDefinition that configures the FactoryBean as the "beanClass", while exposing the actual type in "resolvedType". While unusual, this is required in certain cases when the factory bean exposes generic information itself. Previously, the hints f...
spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionPropertiesCodeGeneratorTests.java
@@ -31,6 +31,7 @@ import org.springframework.aot.hint.predicate.RuntimeHintsPredicates; import org.springframework.aot.test.generator.compile.Compiled; import org.springframework.aot.test.generator.compile.TestCompiler; +import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory....
true
Other
spring-projects
spring-framework
718ef42d68acbdc9f62799d2e3762bd4d4361a04.json
Exclude @Reflective from @AliasFor collection Update `RuntimeHintsUtils` to skip `@Reflective` annotations when checking for `@AliasFor`. Since the `@Reflective` annotation is only used at AOT processing time, we shouldn't need a hint for it. See gh-28528
spring-core/src/main/java/org/springframework/aot/hint/support/RuntimeHintsUtils.java
@@ -27,6 +27,7 @@ import org.springframework.aot.hint.RuntimeHints; import org.springframework.aot.hint.TypeHint; import org.springframework.aot.hint.TypeHint.Builder; +import org.springframework.aot.hint.annotation.Reflective; import org.springframework.core.annotation.AliasFor; import org.springframework.core.an...
false
Other
spring-projects
spring-framework
059b66bf26c2aa8b96847938a2eb00e7645c69e1.json
Register annotation based on its type This commit improves registerAnnotation to use the annotation type rather than a `MergedAnnotation` attribute. See gh-28497
spring-context/src/main/java/org/springframework/context/aot/ReflectiveProcessorBeanRegistrationAotProcessor.java
@@ -27,10 +27,8 @@ import java.util.function.Consumer; import org.springframework.aot.generate.GenerationContext; -import org.springframework.aot.hint.MemberCategory; import org.springframework.aot.hint.ReflectionHints; import org.springframework.aot.hint.RuntimeHints; -import org.springframework.aot.hint.TypeHin...
true
Other
spring-projects
spring-framework
059b66bf26c2aa8b96847938a2eb00e7645c69e1.json
Register annotation based on its type This commit improves registerAnnotation to use the annotation type rather than a `MergedAnnotation` attribute. See gh-28497
spring-context/src/test/java/org/springframework/context/aot/ReflectiveProcessorBeanRegistrationAotProcessorTests.java
@@ -97,7 +97,7 @@ void shouldRegisterAnnotation() { process(SampleMethodMetaAnnotatedBean.class); RuntimeHints runtimeHints = this.generationContext.getRuntimeHints(); assertThat(runtimeHints.reflection().getTypeHint(SampleInvoker.class)).satisfies(typeHint -> - assertThat(typeHint.getMemberCategories()).co...
true
Other
spring-projects
spring-framework
059b66bf26c2aa8b96847938a2eb00e7645c69e1.json
Register annotation based on its type This commit improves registerAnnotation to use the annotation type rather than a `MergedAnnotation` attribute. See gh-28497
spring-core/src/main/java/org/springframework/aot/hint/support/RuntimeHintsUtils.java
@@ -16,13 +16,18 @@ package org.springframework.aot.hint.support; +import java.lang.annotation.Annotation; +import java.lang.reflect.Method; +import java.util.LinkedHashSet; +import java.util.Set; import java.util.function.Consumer; import org.springframework.aot.hint.MemberCategory; import org.springframewor...
true
Other
spring-projects
spring-framework
059b66bf26c2aa8b96847938a2eb00e7645c69e1.json
Register annotation based on its type This commit improves registerAnnotation to use the annotation type rather than a `MergedAnnotation` attribute. See gh-28497
spring-core/src/main/java/org/springframework/core/annotation/CoreAnnotationsRuntimeHintsRegistrar.java
@@ -16,9 +16,12 @@ package org.springframework.core.annotation; +import java.util.stream.Stream; + import org.springframework.aot.hint.RuntimeHints; import org.springframework.aot.hint.RuntimeHintsRegistrar; import org.springframework.aot.hint.support.RuntimeHintsUtils; +import org.springframework.lang.Nullable...
true
Other
spring-projects
spring-framework
059b66bf26c2aa8b96847938a2eb00e7645c69e1.json
Register annotation based on its type This commit improves registerAnnotation to use the annotation type rather than a `MergedAnnotation` attribute. See gh-28497
spring-core/src/test/java/org/springframework/aot/hint/support/RuntimeHintsUtilsTests.java
@@ -32,7 +32,6 @@ import org.springframework.aot.hint.TypeHint; import org.springframework.aot.hint.TypeReference; import org.springframework.core.annotation.AliasFor; -import org.springframework.core.annotation.MergedAnnotations; import org.springframework.core.annotation.SynthesizedAnnotation; import static or...
true
Other
spring-projects
spring-framework
059b66bf26c2aa8b96847938a2eb00e7645c69e1.json
Register annotation based on its type This commit improves registerAnnotation to use the annotation type rather than a `MergedAnnotation` attribute. See gh-28497
spring-core/src/test/java/org/springframework/core/annotation/CoreAnnotationsRuntimeHintsRegistrarTests.java
@@ -49,14 +49,14 @@ void setup() { void aliasForHasHints() { assertThat(this.hints.reflection().getTypeHint(TypeReference.of(AliasFor.class))) .satisfies(hint -> assertThat(hint.getMemberCategories()) - .containsExactly(MemberCategory.INVOKE_PUBLIC_METHODS)); + .containsExactly(MemberCategory.INVOKE...
true
Other
spring-projects
spring-framework
bde0931e51ff93ef679e9d79f7798f681858f81c.json
Fix Javadoc for DatabaseClient The documentation for DatabaseClient had misplaced double quotes in the example on how to map a select statement to a row. Closes gh-28520
spring-r2dbc/src/main/java/org/springframework/r2dbc/core/DatabaseClient.java
@@ -45,8 +45,8 @@ * * DatabaseClient client = DatabaseClient.create(factory); * Mono<Actor> actor = client.sql("select first_name, last_name from t_actor") - * .map(row -> new Actor(row.get("first_name, String.class"), - * row.get("last_name, String.class"))) + * .map(row -> new Actor...
false
Other
spring-projects
spring-framework
7b95c928d14244a41005b98db385bf669c0ddeb0.json
Fix Javadoc for ResourcePatternResolver
spring-core/src/main/java/org/springframework/core/io/support/ResourcePatternResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * 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. @@ -36,15 +36,16 @@ * {@link ResourceArrayPro...
false
Other
spring-projects
spring-framework
2a2fba6a37666b41205565b7d1a804373a6635d2.json
Resolve placeholders in HttpExchange#url Closes gh-28492
spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceMethod.java
@@ -42,6 +42,7 @@ import org.springframework.util.Assert; import org.springframework.util.ObjectUtils; import org.springframework.util.StringUtils; +import org.springframework.util.StringValueResolver; import org.springframework.web.service.annotation.HttpExchange; /** @@ -67,13 +68,13 @@ final class HttpService...
true
Other
spring-projects
spring-framework
2a2fba6a37666b41205565b7d1a804373a6635d2.json
Resolve placeholders in HttpExchange#url Closes gh-28492
spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceProxyFactory.java
@@ -35,6 +35,7 @@ import org.springframework.format.support.DefaultFormattingConversionService; import org.springframework.lang.Nullable; import org.springframework.util.Assert; +import org.springframework.util.StringValueResolver; import org.springframework.web.service.annotation.HttpExchange; /** @@ -50,17 +51...
true
Other
spring-projects
spring-framework
2a2fba6a37666b41205565b7d1a804373a6635d2.json
Resolve placeholders in HttpExchange#url Closes gh-28492
spring-web/src/test/java/org/springframework/web/service/invoker/HttpServiceMethodTests.java
@@ -168,7 +168,11 @@ void methodAnnotatedService() { @Test void typeAndMethodAnnotatedService() { - MethodLevelAnnotatedService service = this.proxyFactory.createClient(TypeAndMethodLevelAnnotatedService.class); + HttpServiceProxyFactory proxyFactory = HttpServiceProxyFactory.builder(this.clientAdapter) + .s...
true
Other
spring-projects
spring-framework
ce568468aed09147e335b5d5a717e1b2dac581a8.json
Refine JSON encoding of non-streaming Flux Closes gh-28398
spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java
@@ -35,6 +35,7 @@ import com.fasterxml.jackson.databind.SequenceWriter; import com.fasterxml.jackson.databind.exc.InvalidDefinitionException; import com.fasterxml.jackson.databind.ser.FilterProvider; +import org.apache.commons.logging.Log; import org.reactivestreams.Publisher; import reactor.core.publisher.Flux; ...
true
Other
spring-projects
spring-framework
ce568468aed09147e335b5d5a717e1b2dac581a8.json
Refine JSON encoding of non-streaming Flux Closes gh-28398
spring-web/src/test/java/org/springframework/http/codec/json/Jackson2JsonEncoderTests.java
@@ -33,7 +33,6 @@ import org.springframework.core.ResolvableType; import org.springframework.core.io.buffer.DataBuffer; -import org.springframework.core.io.buffer.DataBufferUtils; import org.springframework.core.testfixture.codec.AbstractEncoderTests; import org.springframework.http.MediaType; import org.springf...
true
Other
spring-projects
spring-framework
4cca190aad3cf643c765f39655432e0ebd00549e.json
Add support of declarative use of reflection This commit adds a `@Reflective` annotation that can be used to declare that the annotated element requires reflection at runtime. By default, the annotated element is exposed but this can be customized by specifying a dedicated `ReflectiveProcessor`. Closes gh-28469
spring-context/src/main/java/org/springframework/context/aot/ReflectiveProcessorBeanRegistrationAotProcessor.java
@@ -0,0 +1,149 @@ +/* + * 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 ...
true
Other
spring-projects
spring-framework
4cca190aad3cf643c765f39655432e0ebd00549e.json
Add support of declarative use of reflection This commit adds a `@Reflective` annotation that can be used to declare that the annotated element requires reflection at runtime. By default, the annotated element is exposed but this can be customized by specifying a dedicated `ReflectiveProcessor`. Closes gh-28469
spring-context/src/main/resources/META-INF/spring/aot.factories
@@ -0,0 +1,2 @@ +org.springframework.beans.factory.aot.BeanRegistrationAotProcessor= \ +org.springframework.context.aot.ReflectiveProcessorBeanRegistrationAotProcessor \ No newline at end of file
true
Other
spring-projects
spring-framework
4cca190aad3cf643c765f39655432e0ebd00549e.json
Add support of declarative use of reflection This commit adds a `@Reflective` annotation that can be used to declare that the annotated element requires reflection at runtime. By default, the annotated element is exposed but this can be customized by specifying a dedicated `ReflectiveProcessor`. Closes gh-28469
spring-context/src/test/java/org/springframework/context/aot/ReflectiveProcessorBeanRegistrationAotProcessorTests.java
@@ -0,0 +1,220 @@ +/* + * 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 ...
true
Other
spring-projects
spring-framework
4cca190aad3cf643c765f39655432e0ebd00549e.json
Add support of declarative use of reflection This commit adds a `@Reflective` annotation that can be used to declare that the annotated element requires reflection at runtime. By default, the annotated element is exposed but this can be customized by specifying a dedicated `ReflectiveProcessor`. Closes gh-28469
spring-core/src/main/java/org/springframework/aot/hint/annotation/Reflective.java
@@ -0,0 +1,57 @@ +/* + * 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 +...
true
Other
spring-projects
spring-framework
4cca190aad3cf643c765f39655432e0ebd00549e.json
Add support of declarative use of reflection This commit adds a `@Reflective` annotation that can be used to declare that the annotated element requires reflection at runtime. By default, the annotated element is exposed but this can be customized by specifying a dedicated `ReflectiveProcessor`. Closes gh-28469
spring-core/src/main/java/org/springframework/aot/hint/annotation/ReflectiveProcessor.java
@@ -0,0 +1,39 @@ +/* + * 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 +...
true
Other
spring-projects
spring-framework
4cca190aad3cf643c765f39655432e0ebd00549e.json
Add support of declarative use of reflection This commit adds a `@Reflective` annotation that can be used to declare that the annotated element requires reflection at runtime. By default, the annotated element is exposed but this can be customized by specifying a dedicated `ReflectiveProcessor`. Closes gh-28469
spring-core/src/main/java/org/springframework/aot/hint/annotation/SimpleReflectiveProcessor.java
@@ -0,0 +1,93 @@ +/* + * 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 +...
true
Other
spring-projects
spring-framework
4cca190aad3cf643c765f39655432e0ebd00549e.json
Add support of declarative use of reflection This commit adds a `@Reflective` annotation that can be used to declare that the annotated element requires reflection at runtime. By default, the annotated element is exposed but this can be customized by specifying a dedicated `ReflectiveProcessor`. Closes gh-28469
spring-core/src/main/java/org/springframework/aot/hint/annotation/package-info.java
@@ -0,0 +1,9 @@ +/** + * Annotation support for runtime hints. + */ +@NonNullApi +@NonNullFields +package org.springframework.aot.hint.annotation; + +import org.springframework.lang.NonNullApi; +import org.springframework.lang.NonNullFields;
true
Other
spring-projects
spring-framework
4cca190aad3cf643c765f39655432e0ebd00549e.json
Add support of declarative use of reflection This commit adds a `@Reflective` annotation that can be used to declare that the annotated element requires reflection at runtime. By default, the annotated element is exposed but this can be customized by specifying a dedicated `ReflectiveProcessor`. Closes gh-28469
spring-core/src/test/java/org/springframework/aot/hint/annotation/SimpleReflectiveProcessorTests.java
@@ -0,0 +1,115 @@ +/* + * 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 ...
true
Other
spring-projects
spring-framework
bf8a54decfd58ca8d2a2d0d52e2ed62f1650b5e0.json
Switch focus to JUnit Jupiter in testing examples
spring-context/src/main/java/org/springframework/context/annotation/Configuration.java
@@ -356,16 +356,16 @@ * {@code @Component} classes. * * <pre class="code"> - * &#064;RunWith(SpringRunner.class) + * &#064;ExtendWith(SpringExtension.class) * &#064;ContextConfiguration(classes = {AppConfig.class, DatabaseConfig.class}) - * public class MyTests { + * class MyTests { * * &#064;Autowired ...
true
Other
spring-projects
spring-framework
bf8a54decfd58ca8d2a2d0d52e2ed62f1650b5e0.json
Switch focus to JUnit Jupiter in testing examples
spring-test/src/main/java/org/springframework/test/context/ContextHierarchy.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * 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. @@ -42,16 +42,16 @@ * the one for the child c...
true
Other
spring-projects
spring-framework
5220410768381c2a16a06b5d323942798bba116b.json
Update copyright date
spring-test/src/main/java/org/springframework/test/context/DynamicPropertySource.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * 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.
false
Other
spring-projects
spring-framework
944c14bdf9f47cc66a07ef99237c3ed23f41f263.json
Fix email adress in '.mailmap'
.mailmap
@@ -10,10 +10,11 @@ Phillip Webb <pwebb@vmware.com> <pwebb@gopivotal.com> Chris Beams <cbeams@vmware.com> Chris Beams <cbeams@vmware.com> <cbeams@pivotal.io> Chris Beams <cbeams@vmware.com> <cbeams@gopivotal.com> -Arjen Poutsma <apoutsma@vmware.com> -Arjen Poutsma <apoutsma@vmware.com> <apoutsma@pivotal.io> -Arjen P...
false
Other
spring-projects
spring-framework
ff9a4ab35c1dad7e1f1ba640280461fc84cf2300.json
Update documentation for RFC 7807 support Closes gh-28438
src/docs/asciidoc/web/webflux.adoc
@@ -3496,19 +3496,46 @@ include::webflux-cors.adoc[leveloffset=+1] [.small]#<<web.adoc#mvc-ann-rest-exceptions, Web MVC>># A common requirement for REST services is to include error details in the body of the -response. The Spring Framework does not automatically do so, because the representation -of error details ...
true
Other
spring-projects
spring-framework
ff9a4ab35c1dad7e1f1ba640280461fc84cf2300.json
Update documentation for RFC 7807 support Closes gh-28438
src/docs/asciidoc/web/webmvc.adoc
@@ -4824,20 +4824,46 @@ include::webmvc-cors.adoc[leveloffset=+1] [.small]#<<web-reactive.adoc#webflux-ann-rest-exceptions, WebFlux>># A common requirement for REST services is to include error details in the body of the -response. The Spring Framework does not automatically do this because the representation -of e...
true
Other
spring-projects
spring-framework
222dbf837702ac01b04c42432f4995dd7d2f1b08.json
Update copyright date
spring-web/src/main/java/org/springframework/web/multipart/support/StandardMultipartHttpServletRequest.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * 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.
false
Other
spring-projects
spring-framework
d660f5f62f7ba98ca510b2e7f07b36712495214a.json
Fix Javadoc in ResponseEntityExceptionHandler
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityExceptionHandler.java
@@ -50,7 +50,7 @@ * individual methods that handle a specific exception, override * {@link #handleExceptionInternal} to override common handling of all exceptions, * or {@link #createResponseEntity} to intercept the final step of creating the - * @link ResponseEntity} from the selected HTTP status code, headers, ...
false
Other
spring-projects
spring-framework
c942c8d2cf510b1fac6c4e79224ddf7cdcf358e1.json
Fix expectations in MockMvc Kotlin documentation Closes gh-28301
src/docs/asciidoc/testing.adoc
@@ -7367,7 +7367,7 @@ no other expectations will be asserted. import org.springframework.test.web.servlet.get mockMvc.get("/accounts/1").andExpect { - status().isOk() + status { isOk() } } ---- @@ -7415,7 +7415,7 @@ The following test asserts that binding or validation failed: import org.springframework....
false
Other
spring-projects
spring-framework
4d7e4e0c5885dbf28bd2fbc7f91696842e1d4718.json
Fix a typo See gh-28630
src/docs/asciidoc/core/core-beans.adoc
@@ -4689,7 +4689,7 @@ example: ---- class SimpleMovieLister { - @set:Autowired + @set:Required lateinit var movieFinder: MovieFinder // ...
false
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-beans/src/main/java/org/springframework/beans/factory/annotation/JakartaAnnotationsRuntimeHints.java
@@ -29,7 +29,7 @@ * * @author Brian Clozel */ -class JakartaAnnotationsRuntimeHintsRegistrar implements RuntimeHintsRegistrar { +class JakartaAnnotationsRuntimeHints implements RuntimeHintsRegistrar { @Override public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-beans/src/main/resources/META-INF/spring/aot.factories
@@ -1,4 +1,5 @@ org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor=\ org.springframework.beans.factory.aot.BeanRegistrationsAotProcessor + org.springframework.aot.hint.RuntimeHintsRegistrar=\ -org.springframework.beans.factory.annotation.JakartaAnnotationsRuntimeHintsRegistrar \ No newline a...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-beans/src/test/java/org/springframework/beans/factory/annotation/JakartaAnnotationsRuntimeHintsTests.java
@@ -33,10 +33,11 @@ import static org.assertj.core.api.Assertions.assertThat; /** - * Tests for {@link JakartaAnnotationsRuntimeHintsRegistrar}. + * Tests for {@link JakartaAnnotationsRuntimeHints}. + * * @author Brian Clozel */ -class JakartaAnnotationsRuntimeHintsRegistrarTests { +class JakartaAnnotationsRunt...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-context-support/src/main/java/org/springframework/mail/javamail/JavaMailMimeTypesRuntimeHints.java
@@ -27,10 +27,11 @@ * @author Sebastien Deleuze * @since 6.0 */ -class MimeTypeResourceHintsRegistrar implements RuntimeHintsRegistrar { +class JavaMailMimeTypesRuntimeHints implements RuntimeHintsRegistrar { @Override public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) { hin...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-context-support/src/main/resources/META-INF/spring/aot.factories
@@ -1,2 +1,2 @@ org.springframework.aot.hint.RuntimeHintsRegistrar= \ -org.springframework.mail.javamail.MimeTypeResourceHintsRegistrar \ No newline at end of file +org.springframework.mail.javamail.JavaMailMimeTypesRuntimeHints \ No newline at end of file
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java
@@ -37,6 +37,9 @@ import org.springframework.aop.framework.AopInfrastructureBean; import org.springframework.aop.framework.AopProxyUtils; import org.springframework.aop.support.AopUtils; +import org.springframework.aot.hint.RuntimeHints; +import org.springframework.aot.hint.RuntimeHintsRegistrar; +import org.springf...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationRuntimeHintsRegistrar.java
@@ -1,37 +0,0 @@ -/* - * 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 -...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-context/src/main/java/org/springframework/validation/beanvalidation/MethodValidationPostProcessor.java
@@ -23,15 +23,19 @@ import org.aopalliance.aop.Advice; import org.springframework.aop.Pointcut; +import org.springframework.aop.framework.AopProxyUtils; import org.springframework.aop.framework.autoproxy.AbstractBeanFactoryAwareAdvisingPostProcessor; import org.springframework.aop.support.DefaultPointcutAdvisor; ...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-context/src/main/java/org/springframework/validation/beanvalidation/MethodValidationRuntimeHintsRegistrar.java
@@ -1,40 +0,0 @@ -/* - * 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 -...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-core/src/main/java/org/springframework/aot/hint/support/CoreAnnotationsRuntimeHints.java
@@ -30,7 +30,7 @@ * @author Phillip Webb * @since 6.0 */ -class CoreAnnotationsRuntimeHintsRegistrar implements RuntimeHintsRegistrar { +class CoreAnnotationsRuntimeHints implements RuntimeHintsRegistrar { @Override public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-core/src/main/java/org/springframework/aot/hint/support/SpringFactoriesLoaderRuntimeHints.java
@@ -40,15 +40,15 @@ * @since 6.0 * @see SpringFactoriesLoader */ -class SpringFactoriesLoaderRuntimeHintsRegistrar implements RuntimeHintsRegistrar { +class SpringFactoriesLoaderRuntimeHints implements RuntimeHintsRegistrar { private static final List<String> RESOURCE_LOCATIONS = List.of(SpringFactoriesLo...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-core/src/main/resources/META-INF/spring/aot.factories
@@ -1,3 +1,3 @@ org.springframework.aot.hint.RuntimeHintsRegistrar=\ -org.springframework.aot.hint.support.CoreAnnotationsRuntimeHintsRegistrar,\ -org.springframework.aot.hint.support.SpringFactoriesLoaderRuntimeHintsRegistrar +org.springframework.aot.hint.support.CoreAnnotationsRuntimeHints,\ +org.springframework.aot...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-core/src/test/java/org/springframework/aot/hint/support/CoreAnnotationsRuntimeHintsTests.java
@@ -31,13 +31,13 @@ import static org.assertj.core.api.Assertions.assertThat; /** - * Tests for {@link CoreAnnotationsRuntimeHintsRegistrar}. + * Tests for {@link CoreAnnotationsRuntimeHints}. * * @author Phillip Webb */ -class CoreAnnotationsRuntimeHintsRegistrarTests { +class CoreAnnotationsRuntimeHintsTest...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-core/src/test/java/org/springframework/aot/hint/support/SpringFactoriesLoaderRuntimeHintsTests.java
@@ -31,11 +31,11 @@ import static org.assertj.core.api.Assertions.assertThat; /** - * Tests for {@link SpringFactoriesLoaderRuntimeHintsRegistrar}. + * Tests for {@link SpringFactoriesLoaderRuntimeHints}. * * @author Phillip Webb */ -class SpringFactoriesLoaderRuntimeHintsRegistrarTests { +class SpringFactori...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/MessagingAnnotationsRuntimeHints.java
@@ -31,7 +31,7 @@ * @author Sebastien Deleuze * @since 6.0 */ -public class MessagingAnnotationsRuntimeHintsRegistrar implements RuntimeHintsRegistrar { +public class MessagingAnnotationsRuntimeHints implements RuntimeHintsRegistrar { @Override public void registerHints(RuntimeHints hints, @Nullable ClassLo...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/SimpAnnotationsRuntimeHints.java
@@ -29,7 +29,7 @@ * @author Sebastien Deleuze * @since 6.0 */ -public class SimpAnnotationsRuntimeHintsRegistrar implements RuntimeHintsRegistrar { +public class SimpAnnotationsRuntimeHints implements RuntimeHintsRegistrar { @Override public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractMessageBrokerConfiguration.java
@@ -42,12 +42,12 @@ import org.springframework.messaging.converter.MappingJackson2MessageConverter; import org.springframework.messaging.converter.MessageConverter; import org.springframework.messaging.converter.StringMessageConverter; -import org.springframework.messaging.handler.annotation.MessagingAnnotationsRunt...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-tx/src/main/java/org/springframework/transaction/annotation/ProxyTransactionManagementConfiguration.java
@@ -38,7 +38,7 @@ */ @Configuration(proxyBeanMethods = false) @Role(BeanDefinition.ROLE_INFRASTRUCTURE) -@ImportRuntimeHints(TransactionRuntimeHintsRegistrar.class) +@ImportRuntimeHints(TransactionRuntimeHints.class) public class ProxyTransactionManagementConfiguration extends AbstractTransactionManagementConfigur...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-tx/src/main/java/org/springframework/transaction/annotation/TransactionBeanRegistrationAotProcessor.java
@@ -39,9 +39,9 @@ * * @author Sebastien Deleuze * @since 6.0 - * @see TransactionRuntimeHintsRegistrar + * @see TransactionRuntimeHints */ -public class TransactionBeanRegistrationAotProcessor implements BeanRegistrationAotProcessor { +class TransactionBeanRegistrationAotProcessor implements BeanRegistrationAot...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-tx/src/main/java/org/springframework/transaction/annotation/TransactionRuntimeHints.java
@@ -16,13 +16,14 @@ package org.springframework.transaction.annotation; +import java.util.List; + import org.springframework.aot.hint.MemberCategory; import org.springframework.aot.hint.RuntimeHints; import org.springframework.aot.hint.RuntimeHintsRegistrar; import org.springframework.aot.hint.TypeReference; ...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-web/src/main/java/org/springframework/http/HttpMimeTypesRuntimeHints.java
@@ -27,7 +27,7 @@ * @author Stephane Nicoll * @since 6.0 */ -class MediaTypeResourceHintsRegistrar implements RuntimeHintsRegistrar { +class HttpMimeTypesRuntimeHints implements RuntimeHintsRegistrar { @Override public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-web/src/main/java/org/springframework/http/codec/CodecConfigurerRuntimeHints.java
@@ -31,7 +31,7 @@ * @author Sebastien Deleuze * @since 6.0 */ -public class CodecConfigurerHintsRegistrar implements RuntimeHintsRegistrar { +class CodecConfigurerRuntimeHints implements RuntimeHintsRegistrar { @Override public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-web/src/main/java/org/springframework/http/converter/json/JacksonModulesRuntimeHints.java
@@ -29,7 +29,8 @@ * @author Sebastien Deleuze * @since 6.0 */ -public class JacksonBuilderRuntimeHintsRegistrar implements RuntimeHintsRegistrar { +class JacksonModulesRuntimeHints implements RuntimeHintsRegistrar { + @Override public void registerHints(RuntimeHints hints, ClassLoader classLoader) { Reflec...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-web/src/main/resources/META-INF/spring/aot.factories
@@ -1,4 +1,4 @@ org.springframework.aot.hint.RuntimeHintsRegistrar= \ -org.springframework.http.MediaTypeResourceHintsRegistrar,\ -org.springframework.http.codec.CodecConfigurerHintsRegistrar,\ -org.springframework.http.converter.json.JacksonBuilderRuntimeHintsRegistrar \ No newline at end of file +org.springframework...
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-websocket/src/main/java/org/springframework/web/socket/server/support/HandshakeHandlerRuntimeHints.java
@@ -30,7 +30,7 @@ * @author Sebastien Deleuze * @since 6.0 */ -public class HandshakeHandlerRuntimeHintsRegistrar implements RuntimeHintsRegistrar { +class HandshakeHandlerRuntimeHints implements RuntimeHintsRegistrar { private static final boolean tomcatWsPresent;
true
Other
spring-projects
spring-framework
2c92d7da8f8feace44fcbef1578e80b341109b41.json
Harmonize RuntimeHintsRegistrar implementations Closes gh-28801
spring-websocket/src/main/resources/META-INF/spring/aot.factories
@@ -1,2 +1,2 @@ org.springframework.aot.hint.RuntimeHintsRegistrar= \ -org.springframework.web.socket.server.support.HandshakeHandlerRuntimeHintsRegistrar \ No newline at end of file +org.springframework.web.socket.server.support.HandshakeHandlerRuntimeHints \ No newline at end of file
true
Other
spring-projects
spring-framework
1c03aaaddc6ab1034d6455ffc8d82fe9d05c54fb.json
Fix Javadoc in ResponseEntityExceptionHandler
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java
@@ -59,7 +59,7 @@ * individual methods that handle a specific exception, override * {@link #handleExceptionInternal} to override common handling of all exceptions, * or {@link #createResponseEntity} to intercept the final step of creating the - * @link ResponseEntity} from the selected HTTP status code, headers, ...
false
Other
spring-projects
spring-framework
31a9694fc88e0a5b9343d2cca1cf008aef26830d.json
Improve Javadoc for ContextCache#clearStatistics() See gh-28795
spring-test/src/main/java/org/springframework/test/context/cache/ContextCache.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * 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. @@ -155,7 +155,8 @@ public interface ContextCac...
false
Other
spring-projects
spring-framework
ee6a4e7c1e3245bd758c1a553f21ae8b3a8a6dbc.json
Add predicates for Serialization hints Closes gh-28772
spring-core/src/main/java/org/springframework/aot/hint/RuntimeHintsPredicates.java
@@ -37,6 +37,8 @@ public abstract class RuntimeHintsPredicates { private static final ResourceHintsPredicates resource = new ResourceHintsPredicates(); + private static final SerializationHintsPredicates serialization = new SerializationHintsPredicates(); + private static final ProxyHintsPredicates proxies = ne...
true
Other
spring-projects
spring-framework
ee6a4e7c1e3245bd758c1a553f21ae8b3a8a6dbc.json
Add predicates for Serialization hints Closes gh-28772
spring-core/src/main/java/org/springframework/aot/hint/SerializationHintsPredicates.java
@@ -0,0 +1,60 @@ +/* + * 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 +...
true
Other
spring-projects
spring-framework
ee6a4e7c1e3245bd758c1a553f21ae8b3a8a6dbc.json
Add predicates for Serialization hints Closes gh-28772
spring-core/src/test/java/org/springframework/aot/hint/SerializationHintsPredicatesTests.java
@@ -0,0 +1,52 @@ +/* + * 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 +...
true
Other
spring-projects
spring-framework
c01a2e897d410efbcbaef36ffd0f56208e276970.json
Fix null assignment to non-nullable field Update `BeanRegistrationCodeFragments` package-private constructor to set `codeFragments` to `this` rather than `null`. The field is never actually read by `DefaultBeanRegistrationCodeFragments` since all methods are overridden. Closes gh-28578
spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanRegistrationCodeFragments.java
@@ -60,10 +60,11 @@ protected BeanRegistrationCodeFragments(BeanRegistrationCodeFragments codeFragme /** * Package-private constructor exclusively for - * {@link DefaultBeanRegistrationCodeFragments}. + * {@link DefaultBeanRegistrationCodeFragments}. All methods are overridden + * so {@code this.codeFragments...
false
Other
spring-projects
spring-framework
be1b7da12f43af40bc8be764f306de9971e79bf1.json
Add entries for "Sam Brannen" to .mailmap
.mailmap
@@ -26,5 +26,8 @@ Andy Clement <aclement@vmware.com> Andy Clement <aclement@vmware.com> <aclement@pivotal.io> Andy Clement <aclement@vmware.com> <aclement@gopivotal.com> Andy Clement <aclement@vmware.com> <andrew.clement@gmail.com> +Sam Brannen <sbrannen@vmware.com> +Sam Brannen <sbrannen@vmware.com> <sbrannen@pivot...
false
Other
spring-projects
spring-framework
5ed0c848fe105b3756f248c98d8c40d85ae2e970.json
Improve AssertJ usage in cache config tests See gh-28559
spring-context/src/test/java/org/springframework/cache/config/CacheAdviceParserTests.java
@@ -17,23 +17,22 @@ package org.springframework.cache.config; import org.junit.jupiter.api.Test; - import org.springframework.beans.factory.BeanDefinitionStoreException; import org.springframework.context.support.GenericXmlApplicationContext; -import static org.assertj.core.api.Assertions.assertThatExceptionOfT...
true
Other
spring-projects
spring-framework
5ed0c848fe105b3756f248c98d8c40d85ae2e970.json
Improve AssertJ usage in cache config tests See gh-28559
spring-context/src/test/java/org/springframework/cache/config/CustomInterceptorTests.java
@@ -16,13 +16,9 @@ package org.springframework.cache.config; -import java.io.IOException; -import java.util.Map; - import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; - import org.springframework.cache.CacheManager; import org.springframework.cac...
true
Other
spring-projects
spring-framework
5ed0c848fe105b3756f248c98d8c40d85ae2e970.json
Improve AssertJ usage in cache config tests See gh-28559
spring-context/src/test/java/org/springframework/cache/config/EnableCachingIntegrationTests.java
@@ -16,11 +16,8 @@ package org.springframework.cache.config; -import java.util.concurrent.atomic.AtomicLong; - import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; - import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.Cache; import org.springfr...
true
Other
spring-projects
spring-framework
5ed0c848fe105b3756f248c98d8c40d85ae2e970.json
Improve AssertJ usage in cache config tests See gh-28559
spring-context/src/test/java/org/springframework/cache/config/EnableCachingTests.java
@@ -17,7 +17,6 @@ package org.springframework.cache.config; import org.junit.jupiter.api.Test; - import org.springframework.beans.factory.NoSuchBeanDefinitionException; import org.springframework.beans.factory.NoUniqueBeanDefinitionException; import org.springframework.cache.CacheManager; @@ -44,6 +43,8 @@ impo...
true
Other
spring-projects
spring-framework
74caa9213a44e2b613025b2387d41389c9344953.json
Simplify SourceFileAssert assertion methods Remove assertion methods that turned out not to be needed when testing Spring Framework's AOT generated code. Closes gh-28556
spring-core-test/src/main/java/org/springframework/aot/test/generator/file/MethodAssert.java
@@ -1,63 +0,0 @@ -/* - * 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 -...
true
Other
spring-projects
spring-framework
74caa9213a44e2b613025b2387d41389c9344953.json
Simplify SourceFileAssert assertion methods Remove assertion methods that turned out not to be needed when testing Spring Framework's AOT generated code. Closes gh-28556
spring-core-test/src/main/java/org/springframework/aot/test/generator/file/SourceFile.java
@@ -23,14 +23,15 @@ import com.thoughtworks.qdox.JavaProjectBuilder; import com.thoughtworks.qdox.model.JavaClass; -import com.thoughtworks.qdox.model.JavaPackage; import com.thoughtworks.qdox.model.JavaSource; import org.assertj.core.api.AssertProvider; -import org.assertj.core.util.Strings; import org.spring...
true
Other
spring-projects
spring-framework
74caa9213a44e2b613025b2387d41389c9344953.json
Simplify SourceFileAssert assertion methods Remove assertion methods that turned out not to be needed when testing Spring Framework's AOT generated code. Closes gh-28556
spring-core-test/src/main/java/org/springframework/aot/test/generator/file/SourceFileAssert.java
@@ -16,21 +16,6 @@ package org.springframework.aot.test.generator.file; -import java.util.Arrays; -import java.util.List; -import java.util.stream.Collectors; - -import com.thoughtworks.qdox.model.JavaClass; -import com.thoughtworks.qdox.model.JavaMethod; -import com.thoughtworks.qdox.model.JavaParameter; -import ...
true
Other
spring-projects
spring-framework
74caa9213a44e2b613025b2387d41389c9344953.json
Simplify SourceFileAssert assertion methods Remove assertion methods that turned out not to be needed when testing Spring Framework's AOT generated code. Closes gh-28556
spring-core-test/src/main/java/org/springframework/aot/test/generator/file/SourceFiles.java
@@ -22,6 +22,7 @@ import java.util.stream.Stream; import org.springframework.lang.Nullable; +import org.springframework.util.ClassUtils; /** * An immutable collection of {@link SourceFile} instances. @@ -155,7 +156,7 @@ private SourceFile getSingle(Pattern pattern) { */ public SourceFile getSingleFromPack...
true
Other
spring-projects
spring-framework
74caa9213a44e2b613025b2387d41389c9344953.json
Simplify SourceFileAssert assertion methods Remove assertion methods that turned out not to be needed when testing Spring Framework's AOT generated code. Closes gh-28556
spring-core-test/src/test/java/org/springframework/aot/test/generator/compile/TestCompilerTests.java
@@ -100,8 +100,7 @@ void compileWhenHasDifferentClassesWithSameClassNameCompilesBoth() { @Test void compileAndGetSourceFile() { TestCompiler.forSystem().withSources(SourceFile.of(HELLO_SPRING)).compile( - compiled -> assertThat(compiled.getSourceFile()).hasMethodNamed( - "get").withBodyContaining("// !!"...
true
Other
spring-projects
spring-framework
74caa9213a44e2b613025b2387d41389c9344953.json
Simplify SourceFileAssert assertion methods Remove assertion methods that turned out not to be needed when testing Spring Framework's AOT generated code. Closes gh-28556
spring-core-test/src/test/java/org/springframework/aot/test/generator/file/MethodAssertTests.java
@@ -1,73 +0,0 @@ -/* - * 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 -...
true
Other
spring-projects
spring-framework
74caa9213a44e2b613025b2387d41389c9344953.json
Simplify SourceFileAssert assertion methods Remove assertion methods that turned out not to be needed when testing Spring Framework's AOT generated code. Closes gh-28556
spring-core-test/src/test/java/org/springframework/aot/test/generator/file/SourceFileAssertTests.java
@@ -16,8 +16,6 @@ package org.springframework.aot.test.generator.file; -import java.util.concurrent.Callable; - import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -77,52 +75,4 @@ void isEqualToWhenNotEqualThrowsException() { "expected", "but was"); } - @T...
true
Other
spring-projects
spring-framework
74caa9213a44e2b613025b2387d41389c9344953.json
Simplify SourceFileAssert assertion methods Remove assertion methods that turned out not to be needed when testing Spring Framework's AOT generated code. Closes gh-28556
spring-core-test/src/test/java/org/springframework/aot/test/generator/file/SourceFileTests.java
@@ -18,7 +18,6 @@ import java.io.IOException; -import com.thoughtworks.qdox.model.JavaSource; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -90,12 +89,6 @@ void getContentReturnsContent() { assertThat(sourceFile.getContent()).isEqualTo(HELLO_WORLD); } - ...
true
Other
spring-projects
spring-framework
7fa15cde12354240074c7f81385e710eedfa11f7.json
Escape GITHUB_EVENT argument to BackportBot
.github/workflows/backport-bot.yml
@@ -17,5 +17,10 @@ jobs: with: distribution: 'temurin' java-version: '17' - - run: wget https://github.com/spring-io/backport-bot/releases/download/latest/backport-bot-0.0.1-SNAPSHOT.jar - - run: java -jar backport-bot-0.0.1-SNAPSHOT.jar --github.accessToken="${{ secrets.GITHUB_...
false
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-context/src/test/java/org/springframework/context/annotation/ConfigurationClassPostProcessorAotContributionTests.java
@@ -31,6 +31,7 @@ import org.springframework.aot.generate.InMemoryGeneratedFiles; import org.springframework.aot.generate.MethodGenerator; import org.springframework.aot.generate.MethodReference; +import org.springframework.aot.hint.ResourcePatternHint; import org.springframework.aot.test.generator.compile.Compiled...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/generate/GenerationContext.java
@@ -16,11 +16,11 @@ package org.springframework.aot.generate; -import org.springframework.aot.hint.JavaSerializationHints; import org.springframework.aot.hint.ProxyHints; import org.springframework.aot.hint.ReflectionHints; import org.springframework.aot.hint.ResourceHints; import org.springframework.aot.hint....
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/hint/ClassProxyHint.java
@@ -21,22 +21,29 @@ import java.util.List; import java.util.Objects; +import org.springframework.lang.Nullable; + /** * A hint that describes the need for a proxy against a concrete class. * * @author Stephane Nicoll + * @author Brian Clozel * @since 6.0 */ -public final class ClassProxyHint { +public fi...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/hint/ConditionalHint.java
@@ -0,0 +1,56 @@ +/* + * 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 +...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/hint/JavaSerializationHint.java
@@ -0,0 +1,113 @@ +/* + * 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 ...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/hint/JavaSerializationHints.java
@@ -1,70 +0,0 @@ -/* - * 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 -...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/hint/JdkProxyHint.java
@@ -22,20 +22,27 @@ import java.util.List; import java.util.Objects; +import org.springframework.lang.Nullable; + /** * A hint that describes the need of a JDK {@link Proxy}, that is an * interfaces-based proxy. * * @author Stephane Nicoll + * @author Brian Clozel * @since 6.0 */ -public final class Jd...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/hint/ResourceBundleHint.java
@@ -16,21 +16,29 @@ package org.springframework.aot.hint; +import java.util.Objects; import java.util.ResourceBundle; +import org.springframework.lang.Nullable; + /** - * A hint that describes the need to access to a {@link ResourceBundle}. + * A hint that describes the need to access a {@link ResourceBundle}....
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/hint/ResourceHints.java
@@ -24,7 +24,6 @@ import java.util.function.Consumer; import java.util.stream.Stream; -import org.springframework.aot.hint.ResourcePatternHint.Builder; import org.springframework.lang.Nullable; /** @@ -37,9 +36,9 @@ public class ResourceHints { private final Set<TypeReference> types; - private final List<...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/hint/ResourcePatternHint.java
@@ -16,89 +16,61 @@ package org.springframework.aot.hint; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; +import java.util.Objects; + +import org.springframework.lang.Nullable; /** * A hint that describes resources that sh...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/hint/ResourcePatternHints.java
@@ -0,0 +1,126 @@ +/* + * 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 ...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/hint/RuntimeHints.java
@@ -36,7 +36,7 @@ public class RuntimeHints { private final ResourceHints resources = new ResourceHints(); - private final JavaSerializationHints javaSerialization = new JavaSerializationHints(); + private final SerializationHints serialization = new SerializationHints(); private final ProxyHints proxies = ne...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/hint/SerializationHints.java
@@ -0,0 +1,99 @@ +/* + * 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 +...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/hint/TypeHint.java
@@ -37,7 +37,7 @@ * @author Stephane Nicoll * @since 6.0 */ -public final class TypeHint { +public final class TypeHint implements ConditionalHint { private final TypeReference type; @@ -81,12 +81,8 @@ public TypeReference getType() { return this.type; } - /** - * Return the type that should be reac...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/nativex/JavaSerializationHintsWriter.java
@@ -1,49 +0,0 @@ -/* - * 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 -...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/nativex/NativeConfigurationWriter.java
@@ -18,19 +18,19 @@ import java.util.function.Consumer; -import org.springframework.aot.hint.JavaSerializationHints; import org.springframework.aot.hint.ProxyHints; import org.springframework.aot.hint.ReflectionHints; import org.springframework.aot.hint.ResourceHints; import org.springframework.aot.hint.Runtim...
true
Other
spring-projects
spring-framework
8af1496b376165c3bfadacfa8e0da8746aa5774c.json
Expand hints conditions support in RuntimeHints Prior to this commit, the hints conditions were only supported for the `TypeHint` case. GraalVM generally expanded this concept to all hints and we should do the same. Right now, only the `typeReachable` condition is available but we should design for possible future ad...
spring-core/src/main/java/org/springframework/aot/nativex/ProxyHintsWriter.java
@@ -30,9 +30,10 @@ * * @author Sebastien Deleuze * @author Stephane Nicoll + * @author Brian Clozel * @since 6.0 - * @see <a href="https://www.graalvm.org/22.0/reference-manual/native-image/DynamicProxy/">Dynamic Proxy in Native Image</a> - * @see <a href="https://www.graalvm.org/22.0/reference-manual/native-im...
true