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
cfb61d2a172559af3fec69b9cce5a40d4b66eaa5.json
Add generics to BeanInstanceSupplier Update `BeanInstanceSupplier` to support a generic type. See gh-28748
spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanInstanceSupplierTests.java
@@ -94,7 +94,7 @@ void forConstructorWhenParameterTypesContainsNullThrowsException() { @Test void forConstructorWhenNotFoundThrowsException() { - BeanInstanceSupplier resolver = BeanInstanceSupplier + BeanInstanceSupplier<InputStream> resolver = BeanInstanceSupplier .forConstructor(InputStream.class); S...
true
Other
spring-projects
spring-framework
cfb61d2a172559af3fec69b9cce5a40d4b66eaa5.json
Add generics to BeanInstanceSupplier Update `BeanInstanceSupplier` to support a generic type. See gh-28748
spring-beans/src/test/java/org/springframework/beans/factory/aot/InstanceSupplierCodeGeneratorTests.java
@@ -172,7 +172,7 @@ void generateWhenHasPrivateConstructor() { instanceSupplier); assertThat(bean).isInstanceOf(TestBeanWithPrivateConstructor.class); assertThat(compiled.getSourceFile()) - .contains("return BeanInstanceSupplier.forConstructor();"); + .contains("return BeanInstanceSupplier.<TestBe...
true
Other
spring-projects
spring-framework
cfb61d2a172559af3fec69b9cce5a40d4b66eaa5.json
Add generics to BeanInstanceSupplier Update `BeanInstanceSupplier` to support a generic type. See gh-28748
spring-beans/src/test/java/org/springframework/beans/factory/aot/TestBeanConfiguration.java
@@ -0,0 +1,32 @@ +/* + * 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
1acb41ff4339e412cc2c0e3485a1e6d91f632d6f.json
Add AOT support for by-type RuntimeBeanReference Closes gh-28841
spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionPropertyValueCodeGenerator.java
@@ -513,7 +513,12 @@ private static class BeanReferenceDelegate implements Delegate { @Override @Nullable public CodeBlock generateCode(Object value, ResolvableType type) { - if (value instanceof BeanReference beanReference) { + if (value instanceof RuntimeBeanReference runtimeBeanReference + && runtim...
true
Other
spring-projects
spring-framework
1acb41ff4339e412cc2c0e3485a1e6d91f632d6f.json
Add AOT support for by-type RuntimeBeanReference Closes gh-28841
spring-beans/src/test/java/org/springframework/beans/factory/aot/BeanDefinitionPropertyValueCodeGeneratorTests.java
@@ -40,6 +40,7 @@ import org.springframework.aot.test.generator.compile.TestCompiler; import org.springframework.beans.factory.config.BeanReference; import org.springframework.beans.factory.config.RuntimeBeanNameReference; +import org.springframework.beans.factory.config.RuntimeBeanReference; import org.springframe...
true
Other
spring-projects
spring-framework
7fa9f1c9cfbefcc1a7445f614a08b18363b37ffa.json
Fix broken link to rsocket protocol page Closes gh-28817
src/docs/asciidoc/rsocket.adoc
@@ -53,7 +53,7 @@ through RSocket across the network. === The Protocol One of the benefits of RSocket is that it has well defined behavior on the wire and an -easy to read https://rsocket.io/docs/Protocol[specification] along with some protocol +easy to read https://rsocket.io/about/Protocol[specification] along wi...
false
Other
spring-projects
spring-framework
444e06fa2299b07ce9e6e763a611f129a213ce7d.json
Harmonize visibility of RuntimeHints builders Closes gh-28835
spring-core/src/main/java/org/springframework/aot/hint/ResourceBundleHint.java
@@ -33,7 +33,7 @@ public final class ResourceBundleHint implements ConditionalHint { private final String baseName; @Nullable - private TypeReference reachableType; + private final TypeReference reachableType; ResourceBundleHint(Builder builder) { @@ -83,6 +83,10 @@ public static class Builder { @Nullabl...
true
Other
spring-projects
spring-framework
444e06fa2299b07ce9e6e763a611f129a213ce7d.json
Harmonize visibility of RuntimeHints builders Closes gh-28835
spring-core/src/main/java/org/springframework/aot/hint/ResourceHints.java
@@ -137,7 +137,7 @@ public ResourceHints registerType(Class<?> type) { * @return {@code this}, to facilitate method chaining */ public ResourceHints registerResourceBundle(String baseName, @Nullable Consumer<ResourceBundleHint.Builder> resourceHint) { - ResourceBundleHint.Builder builder = new ResourceBundleHi...
true
Other
spring-projects
spring-framework
444e06fa2299b07ce9e6e763a611f129a213ce7d.json
Harmonize visibility of RuntimeHints builders Closes gh-28835
spring-core/src/main/java/org/springframework/aot/hint/ResourcePatternHints.java
@@ -71,6 +71,9 @@ public static class Builder { private final Set<ResourcePatternHint> excludes = new LinkedHashSet<>(); + Builder() { + } + /** * Includes the resources matching the specified pattern. * @param reachableType the type that should be reachable for this hint to apply
true
Other
spring-projects
spring-framework
87b83e829128ad6aa2dd8d01e3663a55ef00b035.json
Make MethodName package-private Closes gh-28832
spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGenerator.java
@@ -25,12 +25,12 @@ import org.springframework.aot.generate.GeneratedMethod; import org.springframework.aot.generate.GeneratedMethods; import org.springframework.aot.generate.GenerationContext; -import org.springframework.aot.generate.MethodName; import org.springframework.aot.generate.MethodReference; import org....
true
Other
spring-projects
spring-framework
87b83e829128ad6aa2dd8d01e3663a55ef00b035.json
Make MethodName package-private Closes gh-28832
spring-core/src/main/java/org/springframework/aot/generate/GeneratedMethods.java
@@ -68,17 +68,6 @@ private GeneratedMethods(Function<MethodName, String> methodNameGenerator, * @return the newly added {@link GeneratedMethod} */ public GeneratedMethod add(String suggestedName, Consumer<Builder> method) { - Assert.notNull(suggestedName, "'suggestedName' must not be null"); - return add(Meth...
true
Other
spring-projects
spring-framework
87b83e829128ad6aa2dd8d01e3663a55ef00b035.json
Make MethodName package-private Closes gh-28832
spring-core/src/main/java/org/springframework/aot/generate/MethodName.java
@@ -28,7 +28,7 @@ * @author Phillip Webb * @since 6.0 */ -public final class MethodName { +final class MethodName { private static final String[] PREFIXES = { "get", "set", "is" }; @@ -51,7 +51,7 @@ private MethodName(String value) { * @param parts the parts the form the name * @return a method name i...
true
Other
spring-projects
spring-framework
87b83e829128ad6aa2dd8d01e3663a55ef00b035.json
Make MethodName package-private Closes gh-28832
spring-core/src/test/java/org/springframework/aot/generate/GeneratedMethodsTests.java
@@ -52,20 +52,6 @@ void createWithExistingGeneratorUsesGenerator() { assertThat(methods.add("test", methodSpecCustomizer).getName()).hasToString("__test"); } - @Test - void addWithMethodNameWhenSuggestedMethodIsNullThrowsException() { - assertThatIllegalArgumentException().isThrownBy(() -> - this.methods.add...
true
Other
spring-projects
spring-framework
87b83e829128ad6aa2dd8d01e3663a55ef00b035.json
Make MethodName package-private Closes gh-28832
spring-orm/src/main/java/org/springframework/orm/jpa/support/PersistenceAnnotationBeanPostProcessor.java
@@ -43,7 +43,6 @@ import org.springframework.aot.generate.GeneratedMethod; import org.springframework.aot.generate.GeneratedMethods; import org.springframework.aot.generate.GenerationContext; -import org.springframework.aot.generate.MethodName; import org.springframework.aot.generate.MethodReference; import org.sp...
true
Other
spring-projects
spring-framework
c34ccfdb810463c4ffa8fedb38d586cc1c9a91f4.json
Simplify @EneabledIfRuntimeHintsAgent support Since the RuntimeHintsAgentCondition is based solely on the result of invoking a boolean static method, there is no need to implement a custom ExecutionCondition. For such use cases, the @EnabledIf support in JUnit Jupiter is sufficient. This commit therefore replaces the...
spring-core-test/src/main/java/org/springframework/aot/test/agent/EnabledIfRuntimeHintsAgent.java
@@ -22,8 +22,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import org.junit.jupiter.api.Tag; -import org.junit.jupiter.api.extension.ExtendWith; +import org.junit.jupiter.api.condition.EnabledIf; import org.springframework.aot.agent.RuntimeHintsAgent; @@ -51,13 +50,13 @...
true
Other
spring-projects
spring-framework
c34ccfdb810463c4ffa8fedb38d586cc1c9a91f4.json
Simplify @EneabledIfRuntimeHintsAgent support Since the RuntimeHintsAgentCondition is based solely on the result of invoking a boolean static method, there is no need to implement a custom ExecutionCondition. For such use cases, the @EnabledIf support in JUnit Jupiter is sufficient. This commit therefore replaces the...
spring-core-test/src/main/java/org/springframework/aot/test/agent/RuntimeHintsAgentCondition.java
@@ -1,47 +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
bf63309d05e60ed50e05adc1ac8d974f6fc91a3d.json
Allow empty path in MockMvc Closes gh-28823
spring-test/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.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. @@ -148,7 +148,7 @@ private static URI init...
true
Other
spring-projects
spring-framework
bf63309d05e60ed50e05adc1ac8d974f6fc91a3d.json
Allow empty path in MockMvc Closes gh-28823
spring-test/src/test/java/org/springframework/test/web/reactive/server/DefaultControllerSpecTests.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. @@ -50,6 +50,15 @@ public void controller() { ...
true
Other
spring-projects
spring-framework
bf63309d05e60ed50e05adc1ac8d974f6fc91a3d.json
Allow empty path in MockMvc Closes gh-28823
spring-test/src/test/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilderTests.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. @@ -165,6 +165,17 @@ void contextPathServletPat...
true
Other
spring-projects
spring-framework
4c08c276f79e00f66d56344b9aca901f1b326e0c.json
Avoid NPE in PathMatchConfigurer Closes gh-28816
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/PathMatchConfigurer.java
@@ -151,9 +151,9 @@ public PathMatchConfigurer addPathPrefix(String prefix, Predicate<Class<?>> pred * {@code false} and use of this property becomes unnecessary. */ @Deprecated - public PathMatchConfigurer setUseSuffixPatternMatch(Boolean suffixPatternMatch) { + public PathMatchConfigurer setUseSuffixPatternMa...
false
Other
spring-projects
spring-framework
e50131d454248b9eca26edb4765aaeae3f204107.json
Add Consumer methods to configure Jackson modules Closes gh-28633
spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.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. @@ -521,7 +521,7 @@ public Jackson2ObjectMapper...
true
Other
spring-projects
spring-framework
e50131d454248b9eca26edb4765aaeae3f204107.json
Add Consumer methods to configure Jackson modules Closes gh-28633
spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilderTests.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. @@ -241,6 +241,16 @@ void modules() { assert...
true
Other
spring-projects
spring-framework
cdd4e8cd7f1fb5bfd1927d6023ef6d51b0539737.json
Improve regex support for URL path matching Closes gh-28815
spring-core/src/main/java/org/springframework/util/AntPathMatcher.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. @@ -701,8 +701,8 @@ else if (match.startsWith("...
true
Other
spring-projects
spring-framework
cdd4e8cd7f1fb5bfd1927d6023ef6d51b0539737.json
Improve regex support for URL path matching Closes gh-28815
spring-core/src/test/java/org/springframework/util/AntPathMatcherTests.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. @@ -131,6 +131,7 @@ void match() { assertT...
true
Other
spring-projects
spring-framework
cdd4e8cd7f1fb5bfd1927d6023ef6d51b0539737.json
Improve regex support for URL path matching Closes gh-28815
spring-web/src/main/java/org/springframework/web/util/pattern/CaptureVariablePathElement.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. @@ -59,15 +59,9 @@ class CaptureVariablePathEle...
true
Other
spring-projects
spring-framework
cdd4e8cd7f1fb5bfd1927d6023ef6d51b0539737.json
Improve regex support for URL path matching Closes gh-28815
spring-web/src/main/java/org/springframework/web/util/pattern/RegexPathElement.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. @@ -108,12 +108,8 @@ else if (match.startsWith(...
true
Other
spring-projects
spring-framework
cdd4e8cd7f1fb5bfd1927d6023ef6d51b0539737.json
Improve regex support for URL path matching Closes gh-28815
spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternTests.java
@@ -300,6 +300,7 @@ public void encodingAndBoundVariablesCapturePathElement() { checkCapture("{var:f o}","f%20o","var","f o"); // constraint is expressed in non encoded form checkCapture("{var:f.o}","f%20o","var","f o"); checkCapture("{var:f\\|o}","f%7co","var","f|o"); + checkCapture("{var:.*}","x\ny","var","...
true
Other
spring-projects
spring-framework
cdd4e8cd7f1fb5bfd1927d6023ef6d51b0539737.json
Improve regex support for URL path matching Closes gh-28815
src/docs/asciidoc/web/webmvc.adoc
@@ -648,7 +648,7 @@ See <<mvc-config-interceptors>> in the section on MVC configuration for examples configure interceptors. You can also register them directly by using setters on individual `HandlerMapping` implementations. -Note that `postHandle` is less useful with `@ResponseBody` and `ResponseEntity` methods f...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-beans/src/test/java/org/springframework/beans/BeanUtilsTests.java
@@ -280,7 +280,7 @@ void copyPropertiesHonorsGenericTypeMatchesForUpperBoundedWildcard() { * {@code Number} can NOT be copied to {@code Integer}. */ @Test - void copyPropertiesDoesNotCopyeFromSuperTypeToSubType() { + void copyPropertiesDoesNotCopyFromSuperTypeToSubType() { NumberHolder numberHolder = new Num...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-context/src/test/java/org/springframework/context/annotation/ParserStrategyUtilsTests.java
@@ -75,7 +75,7 @@ public void instantiateClassWhenHasNoArgsConstructorCallsAware() { } @Test - public void instantiateClassWhenHasSingleContructorInjectsParams() { + public void instantiateClassWhenHasSingleConstructorInjectsParams() { ArgsConstructor instance = instantiateClass(ArgsConstructor.class); asse...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-core/src/test/java/org/springframework/core/annotation/AnnotationBackCompatibilityTests.java
@@ -29,7 +29,7 @@ * @author Phillip Webb * @since 5.2 */ -class AnnotationBackCompatibiltyTests { +class AnnotationBackCompatibilityTests { @Test void multiplRoutesToMetaAnnotation() {
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-core/src/test/java/org/springframework/core/annotation/AnnotationsScannerTests.java
@@ -120,7 +120,7 @@ void inheritedAnnotationsStrategyOnClassHierarchyScansInCorrectOrder() { } @Test - void inheritedAnnotationsStrategyOnClassWhenHasAnnotationOnBothClassesIncudesOnlyOne() { + void inheritedAnnotationsStrategyOnClassWhenHasAnnotationOnBothClassesIncludesOnlyOne() { Class<?> source = WithSingl...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-core/src/test/java/org/springframework/core/env/StandardEnvironmentTests.java
@@ -242,7 +242,7 @@ void getActiveProfiles_fromSystemProperties_withMultipleProfiles() { } @Test - void getActiveProfiles_fromSystemProperties_withMulitpleProfiles_withWhitespace() { + void getActiveProfiles_fromSystemProperties_withMultipleProfiles_withWhitespace() { System.setProperty(ACTIVE_PROFILES_PROPERT...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-expression/src/test/java/org/springframework/expression/spel/SetValueTests.java
@@ -139,13 +139,13 @@ public void testSetListElementValue() { } @Test - public void testSetGenericListElementValueTypeCoersion() { + public void testSetGenericListElementValueTypeCoercion() { // TODO currently failing since setValue does a getValue and "Wien" string != PlaceOfBirth - check with andy setValu...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-jdbc/src/test/java/org/springframework/jdbc/datasource/lookup/MapDataSourceLookupTests.java
@@ -73,9 +73,9 @@ public void setDataSourcesIsAnIdempotentOperation() throws Exception { @Test public void addingDataSourcePermitsOverride() throws Exception { Map<String, DataSource> dataSources = new HashMap<>(); - StubDataSource overridenDataSource = new StubDataSource(); + StubDataSource overriddenDataSour...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-jdbc/src/test/java/org/springframework/jdbc/support/DatabaseStartupValidatorTests.java
@@ -80,7 +80,7 @@ void shouldUseJdbc4IsValidByDefault() throws Exception { } @Test - void shouldCallValidatonTwiceWhenNotValid() throws Exception { + void shouldCallValidationTwiceWhenNotValid() throws Exception { given(connection.isValid(1)).willReturn(false, true); validator.afterPropertiesSet(); @@ -90...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompHeaderAccessorTests.java
@@ -70,7 +70,7 @@ public void createWithSubscribeNativeHeaders() { } @Test - public void createWithUnubscribeNativeHeaders() { + public void createWithUnsubscribeNativeHeaders() { MultiValueMap<String, String> extHeaders = new LinkedMultiValueMap<>(); extHeaders.add(StompHeaderAccessor.STOMP_ID_HEADER, "s1"...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2UnmarshallerTests.java
@@ -126,7 +126,7 @@ public void unmarshalPartialStaxSourceXmlStreamReader() throws Exception { @Test @SuppressWarnings("unchecked") - public void unmarshalAnXmlReferingToAWrappedXmlElementDecl() throws Exception { + public void unmarshalAnXmlReferringToAWrappedXmlElementDecl() throws Exception { // SPR-10714 ...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-r2dbc/src/test/java/org/springframework/r2dbc/connection/lookup/MapConnectionFactoryLookupUnitTests.java
@@ -35,7 +35,7 @@ public class MapConnectionFactoryLookupUnitTests { private static final String CONNECTION_FACTORY_NAME = "connectionFactory"; @Test - public void getConnectionFactorysReturnsUnmodifiableMap() { + public void getConnectionFactoriesReturnsUnmodifiableMap() { MapConnectionFactoryLookup lookup = ...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-test/src/test/java/org/springframework/test/context/junit/jupiter/AutowiredConfigurationErrorsIntegrationTests.java
@@ -72,7 +72,7 @@ class AutowiredConfigurationErrorsIntegrationTests { AutowiredRepeatedTestMethod.class, AutowiredParameterizedTestMethod.class }) - void autowiredTestMethodsTestTemplateMethodsAndLifecyleMethods(Class<?> testClass) { + void autowiredTestMethodsTestTemplateMethodsAndLifecycleMethods(Class<?> te...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-test/src/test/java/org/springframework/test/context/support/ActiveProfilesUtilsTests.java
@@ -168,7 +168,7 @@ void resolveActiveProfilesWithMergedInheritedResolver() { * @since 4.0 */ @Test - void resolveActiveProfilesWithOverridenInheritedResolver() { + void resolveActiveProfilesWithOverriddenInheritedResolver() { assertResolvedProfiles(OverriddenInheritedFooActiveProfilesResolverTestCase.class,...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-test/src/test/java/org/springframework/test/context/support/DirtiesContextTestExecutionListenerTests.java
@@ -248,7 +248,7 @@ void declaredViaMetaAnnotationWithOverrides() throws Exception { @Test void declaredViaMetaAnnotationWithOverriddenAttributes() throws Exception { - assertAfterClass(DirtiesContextViaMetaAnnotationWithOverridenAttributes.class); + assertAfterClass(DirtiesContextViaMetaAnnotationWithOverr...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-test/src/test/java/org/springframework/test/web/reactive/server/DefaultControllerSpecTests.java
@@ -75,7 +75,7 @@ public void controllerAdviceWithClassArgument() { @Test public void configurerConsumers() { TestConsumer<ArgumentResolverConfigurer> argumentResolverConsumer = new TestConsumer<>(); - TestConsumer<RequestedContentTypeResolverBuilder> contenTypeResolverConsumer = new TestConsumer<>(); + TestCo...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingDataBindingIntegrationTests.java
@@ -110,8 +110,8 @@ public String handleDateParam(@RequestParam Date date) { } @ModelAttribute - public Mono<Foo> addFooAttribute(@PathVariable("id") Optional<Long> optiponalId) { - return optiponalId.map(id -> Mono.just(new Foo(id))).orElse(Mono.empty()); + public Mono<Foo> addFooAttribute(@PathVariable("i...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupportTests.java
@@ -336,7 +336,7 @@ public void defaultLocaleResolverConfiguration() { } @Test - public void defaultThemeResolverfiguration() { + public void defaultThemeResolverConfiguration() { ApplicationContext context = initContext(WebConfig.class); ThemeResolver themeResolver = context.getBean(THEME_RESOLVER_BEAN_NAM...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoTests.java
@@ -185,7 +185,7 @@ void matchCustomCondition() { } @Test - void compareToWithImpicitVsExplicitHttpMethodDeclaration() { + void compareToWithImplicitVsExplicitHttpMethodDeclaration() { RequestMappingInfo noMethods = RequestMappingInfo.paths().build(); RequestMappingInfo oneMethod = RequestMappingInfo.paths(...
true
Other
spring-projects
spring-framework
bd3499671c7067c176898a02f70b9cdd78628911.json
Fix typos in test code This commit fixes typos in test class names, test method names, and test variable names. Closes gh-28807
spring-webmvc/src/test/java/org/springframework/web/servlet/tags/UrlTagTests.java
@@ -223,7 +223,7 @@ public void createQueryStringOneParam() throws JspException { } @Test - public void createQueryStringOneParamForExsistingQueryString() throws JspException { + public void createQueryStringOneParamForExistingQueryString() throws JspException { List<Param> params = new ArrayList<>(); Set<S...
true
Other
spring-projects
spring-framework
165fba868c0a316ec7ba6fa983a8e2364706a31f.json
Fix typos in reference docs Closes gh-28805
src/docs/asciidoc/core/core-beans.adoc
@@ -10642,7 +10642,7 @@ shows such a class: ---- class BlockedListNotifier : ApplicationListener<BlockedListEvent> { - lateinit var notificationAddres: String + lateinit var notificationAddress: String override fun onApplicationEvent(event: BlockedListEvent) { // notify appropriate parties via notificat...
true
Other
spring-projects
spring-framework
165fba868c0a316ec7ba6fa983a8e2364706a31f.json
Fix typos in reference docs Closes gh-28805
src/docs/asciidoc/integration/integration-appendix.adoc
@@ -96,7 +96,7 @@ The following example shows how to use JNDI to look up an environment variable w ---- -[[xsd-schemas-jee-jndi-lookup-evironment-multiple]] +[[xsd-schemas-jee-jndi-lookup-environment-multiple]] ==== `<jee:jndi-lookup/>` (with Multiple JNDI Environment Settings) The following example shows how ...
true
Other
spring-projects
spring-framework
165fba868c0a316ec7ba6fa983a8e2364706a31f.json
Fix typos in reference docs Closes gh-28805
src/docs/asciidoc/rsocket.adoc
@@ -2,7 +2,7 @@ = RSocket :gh-rsocket: https://github.com/rsocket :gh-rsocket-java: {gh-rsocket}/rsocket-java -:gh-rsocket-extentions: {gh-rsocket}/rsocket/blob/master/Extensions +:gh-rsocket-extensions: {gh-rsocket}/rsocket/blob/master/Extensions This section describes Spring Framework's support for the RSocket ...
true
Other
spring-projects
spring-framework
165fba868c0a316ec7ba6fa983a8e2364706a31f.json
Fix typos in reference docs Closes gh-28805
src/docs/asciidoc/testing.adoc
@@ -498,7 +498,7 @@ The following example shows such a case: [source,java,indent=0,subs="verbatim,quotes",role="primary"] .Java ---- - @ContextConfiguration(initializers = CustomContextIntializer.class) // <1> + @ContextConfiguration(initializers = CustomContextInitializer.class) // <1> class ContextInitializerTes...
true
Other
spring-projects
spring-framework
165fba868c0a316ec7ba6fa983a8e2364706a31f.json
Fix typos in reference docs Closes gh-28805
src/docs/asciidoc/web/webflux-functional.adoc
@@ -145,7 +145,7 @@ val string = request.awaitBody<String>() The following example extracts the body to a `Flux<Person>` (or a `Flow<Person>` in Kotlin), -where `Person` objects are decoded from someserialized form, such as JSON or XML: +where `Person` objects are decoded from some serialized form, such as JSON or...
true
Other
spring-projects
spring-framework
165fba868c0a316ec7ba6fa983a8e2364706a31f.json
Fix typos in reference docs Closes gh-28805
src/docs/asciidoc/web/webflux-websocket.adoc
@@ -353,7 +353,7 @@ into the attributes of the `WebSocketSession`. [[webflux-websocket-server-config]] -=== Server Configation +=== Server Configuration [.small]#<<web.adoc#websocket-server-runtime-configuration, Same as in the Servlet stack>># The `RequestUpgradeStrategy` for each server exposes configuration...
true
Other
spring-projects
spring-framework
165fba868c0a316ec7ba6fa983a8e2364706a31f.json
Fix typos in reference docs Closes gh-28805
src/docs/asciidoc/web/webflux.adoc
@@ -650,7 +650,7 @@ a proxy at the boundary of trust should be configured to remove untrusted forwar from the outside. You can also configure the `ForwardedHeaderTransformer` with `removeOnly=true`, in which case it removes but does not use the headers. -NOTE: In 5.1 `ForwardedHeaderFilter` was deprecated and super...
true
Other
spring-projects
spring-framework
165fba868c0a316ec7ba6fa983a8e2364706a31f.json
Fix typos in reference docs Closes gh-28805
src/docs/asciidoc/web/webmvc.adoc
@@ -533,7 +533,7 @@ resolve exceptions thrown during request processing. Those exception resolvers a customizing the logic to address exceptions. See <<mvc-exceptionhandlers>> for more details. For HTTP caching support, handlers can use the `checkNotModified` methods of `WebRequest`, -along with further options for...
true
Other
spring-projects
spring-framework
165fba868c0a316ec7ba6fa983a8e2364706a31f.json
Fix typos in reference docs Closes gh-28805
src/docs/asciidoc/web/websocket.adoc
@@ -1987,7 +1987,7 @@ Note that this incurs a small performance overhead, so you should enable it only -[[websocket-stomp-appplication-context-events]] +[[websocket-stomp-application-context-events]] === Events Several `ApplicationContext` events are published and can be @@ -2030,7 +2030,7 @@ implement their ...
true
Other
spring-projects
spring-framework
2ca64ad88a3d770f59c0bf12c570d3eb80ccac77.json
Fix minor typos in project README See gh-28805
README.md
@@ -14,16 +14,16 @@ For access to artifacts or a distribution zip, see the [Spring Framework Artifac ## Documentation -The Spring Framework maintains reference documentation ([published](https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/) and [source](src/docs/asciidoc)), Github [wiki...
false
Other
spring-projects
spring-framework
a04e805d2709122e2bb43a35f71d6c4d1f04ab41.json
Expose status handler at WebClient.Builder level See gh-28533
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java
@@ -21,6 +21,7 @@ import java.time.ZonedDateTime; import java.util.ArrayList; import java.util.Arrays; +import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; @@ -29,6 +30,7 @@ import java.util.function.IntPredicate; import java.util.function.Predicate; impor...
true
Other
spring-projects
spring-framework
a04e805d2709122e2bb43a35f71d6c4d1f04ab41.json
Expose status handler at WebClient.Builder level See gh-28533
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClientBuilder.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. @@ -22,8 +22,13 @@ import java.util.List; imp...
true
Other
spring-projects
spring-framework
a04e805d2709122e2bb43a35f71d6c4d1f04ab41.json
Expose status handler at WebClient.Builder level See gh-28533
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.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. @@ -255,6 +255,20 @@ interface Builder { */...
true
Other
spring-projects
spring-framework
a04e805d2709122e2bb43a35f71d6c4d1f04ab41.json
Expose status handler at WebClient.Builder level See gh-28533
spring-webflux/src/test/java/org/springframework/web/reactive/function/client/DefaultWebClientTests.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. @@ -423,6 +423,40 @@ public void onStatusHandle...
true
Other
spring-projects
spring-framework
4ed581cdd723e232935a277d092ea6ec981909b6.json
Fix build failures
spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandlerTests.java
@@ -149,7 +149,8 @@ private void testProblemDetailMediaType(MockServerWebExchange exchange, MediaTyp "\"title\":\"Bad Request\"," + "\"status\":400," + "\"detail\":null," + - "\"instance\":\"/path\"}"); + "\"instance\":\"/path\"," + + "\"properties\":null}"); } @Test
true
Other
spring-projects
spring-framework
4ed581cdd723e232935a277d092ea6ec981909b6.json
Fix build failures
spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java
@@ -260,7 +260,8 @@ public void handleErrorResponse() { "\"title\":\"Bad Request\"," + "\"status\":400," + "\"detail\":null," + - "\"instance\":\"/path\"}"); + "\"instance\":\"/path\"," + + "\"properties\":null}"); } @Test @@ -280,7 +281,8 @@ public void handleProblemDetail() {...
true
Other
spring-projects
spring-framework
dc4ae559c5d8df01f2b7388db827e330b361ffc7.json
Upgrade Dokka to 1.7 Closes gh-28641
build.gradle
@@ -2,7 +2,7 @@ plugins { id 'io.spring.dependency-management' version '1.0.11.RELEASE' apply false id 'io.spring.nohttp' version '0.0.10' id "io.freefair.aspectj" version '6.4.0' apply false - id 'org.jetbrains.dokka' version '1.6.10' apply false + id 'org.jetbrains.dokka' version '1.7.0' apply false id 'org.j...
false
Other
spring-projects
spring-framework
b72ee5f0345efd281716ce95b63bfb492df1ddbd.json
Add static factory methods to WebClientAdapter Ideally one would pass WebClient directly to HttpServiceProxyFactory, but two need to remain decoupled. This commit adds static, shortcut methods to WebClientAdapter to create an HttpServiceProxyFactory, thus eliminating the step to wrap the WebClient.
spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceProxyFactory.java
@@ -50,6 +50,7 @@ * * @author Rossen Stoyanchev * @since 6.0 + * @see org.springframework.web.reactive.function.client.support.WebClientAdapter */ public final class HttpServiceProxyFactory implements InitializingBean, EmbeddedValueResolverAware { @@ -75,6 +76,7 @@ public final class HttpServiceProxyFactory ...
true
Other
spring-projects
spring-framework
b72ee5f0345efd281716ce95b63bfb492df1ddbd.json
Add static factory methods to WebClientAdapter Ideally one would pass WebClient directly to HttpServiceProxyFactory, but two need to remain decoupled. This commit adds static, shortcut methods to WebClientAdapter to create an HttpServiceProxyFactory, thus eliminating the step to wrap the WebClient.
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/support/WebClientAdapter.java
@@ -29,20 +29,28 @@ import org.springframework.web.reactive.function.client.WebClient; import org.springframework.web.service.invoker.HttpClientAdapter; import org.springframework.web.service.invoker.HttpRequestValues; +import org.springframework.web.service.invoker.HttpServiceProxyFactory; /** - * {@link HttpC...
true
Other
spring-projects
spring-framework
b72ee5f0345efd281716ce95b63bfb492df1ddbd.json
Add static factory methods to WebClientAdapter Ideally one would pass WebClient directly to HttpServiceProxyFactory, but two need to remain decoupled. This commit adds static, shortcut methods to WebClientAdapter to create an HttpServiceProxyFactory, thus eliminating the step to wrap the WebClient.
spring-webflux/src/test/java/org/springframework/web/reactive/function/client/support/WebClientHttpServiceProxyTests.java
@@ -106,10 +106,9 @@ private TestHttpService initHttpService() throws Exception { } private TestHttpService initHttpService(WebClient webClient) throws Exception { - WebClientAdapter client = new WebClientAdapter(webClient); - HttpServiceProxyFactory proxyFactory = new HttpServiceProxyFactory(client); - proxyF...
true
Other
spring-projects
spring-framework
b72ee5f0345efd281716ce95b63bfb492df1ddbd.json
Add static factory methods to WebClientAdapter Ideally one would pass WebClient directly to HttpServiceProxyFactory, but two need to remain decoupled. This commit adds static, shortcut methods to WebClientAdapter to create an HttpServiceProxyFactory, thus eliminating the step to wrap the WebClient.
src/docs/asciidoc/integration.adoc
@@ -390,14 +390,10 @@ the `WebClient`: [source,java,indent=0,subs="verbatim,quotes"] ---- - WebClient client = WebClient.builder() - .baseUrl("https://api.github.com/") - .build(); - - HttpServiceProxyFactory proxyFactory = - HttpServiceProxyFactory.builder(new WebClientAdapter(client)).build(); + WebClient ...
true
Other
spring-projects
spring-framework
16c43c2041a50a8e1fd0befbb71cc2aa9644620a.json
Add resource hints for Javamail mime.types Closes gh-28690
spring-context-support/src/main/java/org/springframework/mail/javamail/MimeTypeResourceHintsRegistrar.java
@@ -0,0 +1,36 @@ +/* + * 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
16c43c2041a50a8e1fd0befbb71cc2aa9644620a.json
Add resource hints for Javamail mime.types Closes gh-28690
spring-context-support/src/main/resources/META-INF/spring/aot.factories
@@ -0,0 +1,2 @@ +org.springframework.aot.hint.RuntimeHintsRegistrar= \ +org.springframework.mail.javamail.MimeTypeResourceHintsRegistrar \ No newline at end of file
true
Other
spring-projects
spring-framework
93b340e5633d623e0899dd296bda7ce86ce02b20.json
Add reflection hints for HttpEntity For those used in Web controllers. Closes gh-28622
spring-core/src/main/java/org/springframework/aot/hint/support/BindingReflectionHintsRegistrar.java
@@ -38,6 +38,7 @@ import org.springframework.core.KotlinDetector; import org.springframework.core.MethodParameter; import org.springframework.core.ResolvableType; +import org.springframework.lang.Nullable; import org.springframework.util.ClassUtils; /** @@ -123,8 +124,8 @@ private void registerMembers(Reflection...
true
Other
spring-projects
spring-framework
93b340e5633d623e0899dd296bda7ce86ce02b20.json
Add reflection hints for HttpEntity For those used in Web controllers. Closes gh-28622
spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMappingReflectiveProcessor.java
@@ -19,20 +19,26 @@ import java.lang.reflect.AnnotatedElement; import java.lang.reflect.Method; import java.lang.reflect.Parameter; +import java.lang.reflect.Type; import org.springframework.aot.hint.ExecutableMode; import org.springframework.aot.hint.ReflectionHints; import org.springframework.aot.hint.annotat...
true
Other
spring-projects
spring-framework
93b340e5633d623e0899dd296bda7ce86ce02b20.json
Add reflection hints for HttpEntity For those used in Web controllers. Closes gh-28622
spring-web/src/test/java/org/springframework/web/bind/annotation/RequestMappingReflectiveProcessorTests.java
@@ -23,6 +23,7 @@ import org.springframework.aot.hint.MemberCategory; import org.springframework.aot.hint.ReflectionHints; import org.springframework.aot.hint.TypeReference; +import org.springframework.http.HttpEntity; import static org.assertj.core.api.Assertions.assertThat; @@ -112,6 +113,58 @@ void registerR...
true
Other
spring-projects
spring-framework
63fae8c5a7ea21e4ff59ee094cc4541c048e8e54.json
Clarify the scope of target in ClassNameGenerator Closes gh-28517
spring-core/src/main/java/org/springframework/aot/generate/ClassNameGenerator.java
@@ -27,12 +27,13 @@ import org.springframework.util.StringUtils; /** - * Generates unique class names that can be used in ahead-of-time generated - * source code. This class is stateful so the same instance should be used for - * all name generation. Most commonly the class name generator is obtained via a - * {@li...
false
Other
spring-projects
spring-framework
3401359bdf892b7da509a2d364f6d91a2248d8aa.json
Refine @Required Kotlin documentation Refine @Required Kotlin documentation to use annotation use site targets. Closes gh-28630
src/docs/asciidoc/core/core-beans.adoc
@@ -4689,9 +4689,8 @@ example: ---- class SimpleMovieLister { + @set:Autowired lateinit var movieFinder: MovieFinder - @Required - set // ... }
false
Other
spring-projects
spring-framework
f1c00dd8a615ba436f8df7685d5cc593f36bdacb.json
Fix a typo in ResponseEntity documentation Closes gh-28647
src/docs/asciidoc/web/webflux.adoc
@@ -2975,7 +2975,7 @@ configure or customize message writing. public ResponseEntity<String> handle() { String body = ... ; String etag = ... ; - return ResponseEntity.ok().eTag(etag).build(body); + return ResponseEntity.ok().eTag(etag).body(body); } ---- [source,kotlin,indent=0,subs="verbatim,quotes",role...
true
Other
spring-projects
spring-framework
f1c00dd8a615ba436f8df7685d5cc593f36bdacb.json
Fix a typo in ResponseEntity documentation Closes gh-28647
src/docs/asciidoc/web/webmvc.adoc
@@ -3386,7 +3386,7 @@ See <<mvc-ann-jackson>> for details. public ResponseEntity<String> handle() { String body = ... ; String etag = ... ; - return ResponseEntity.ok().eTag(etag).build(body); + return ResponseEntity.ok().eTag(etag).body(body); } ---- [source,kotlin,indent=0,subs="verbatim,quotes",role="s...
true
Other
spring-projects
spring-framework
bdf91ac435a419b431ad67417d3e63ac5b5c2466.json
Set default encoding for Eclipse projects to UTF-8 This change aligns with Java 18 support in recent versions of Eclipse.
gradle/ide.gradle
@@ -72,13 +72,15 @@ eclipse.classpath.file.whenMerged { // Include project specific settings task eclipseSettings(type: Copy) { from rootProject.files( + 'src/eclipse/org.eclipse.core.resources.prefs', 'src/eclipse/org.eclipse.jdt.core.prefs', 'src/eclipse/org.eclipse.jdt.ui.prefs') into project.file('.set...
true
Other
spring-projects
spring-framework
bdf91ac435a419b431ad67417d3e63ac5b5c2466.json
Set default encoding for Eclipse projects to UTF-8 This change aligns with Java 18 support in recent versions of Eclipse.
src/eclipse/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/<project>=UTF-8
true
Other
spring-projects
spring-framework
c991aa9a78fc6a8cab6714f42e2ec30d7329344a.json
Add missing package-info
spring-core/src/main/java/org/springframework/aot/package-info.java
@@ -0,0 +1,9 @@ +/** + * Core package for Spring AOT infrastructure. + */ +@NonNullApi +@NonNullFields +package org.springframework.aot; + +import org.springframework.lang.NonNullApi; +import org.springframework.lang.NonNullFields;
false
Other
spring-projects
spring-framework
5178e9c28eda20859829937c1bc3d38b8b314726.json
Simplify hint registration for Spring AOP proxies Prior to this commit, when users wished to register proxy hints for a Spring AOP JDK dynamic proxy, they were required to explicitly specify SpringProxy, Advised, and DecoratingProxy along with user interfaces. This commit simplifies hint registration for Spring AOP p...
spring-aop/src/main/java/org/springframework/aop/framework/AopProxyUtils.java
@@ -21,13 +21,16 @@ import java.lang.reflect.Proxy; import java.util.ArrayList; import java.util.Arrays; +import java.util.Collections; import java.util.List; import org.springframework.aop.SpringProxy; import org.springframework.aop.TargetClassAware; import org.springframework.aop.TargetSource; import org.sp...
true
Other
spring-projects
spring-framework
5178e9c28eda20859829937c1bc3d38b8b314726.json
Simplify hint registration for Spring AOP proxies Prior to this commit, when users wished to register proxy hints for a Spring AOP JDK dynamic proxy, they were required to explicitly specify SpringProxy, Advised, and DecoratingProxy along with user interfaces. This commit simplifies hint registration for Spring AOP p...
spring-aop/src/test/java/org/springframework/aop/framework/AopProxyUtilsTests.java
@@ -23,6 +23,7 @@ import org.springframework.aop.SpringProxy; import org.springframework.beans.testfixture.beans.ITestBean; import org.springframework.beans.testfixture.beans.TestBean; +import org.springframework.core.DecoratingProxy; import static org.assertj.core.api.Assertions.assertThat; import static org.as...
true
Other
spring-projects
spring-framework
5178e9c28eda20859829937c1bc3d38b8b314726.json
Simplify hint registration for Spring AOP proxies Prior to this commit, when users wished to register proxy hints for a Spring AOP JDK dynamic proxy, they were required to explicitly specify SpringProxy, Advised, and DecoratingProxy along with user interfaces. This commit simplifies hint registration for Spring AOP p...
spring-context/src/main/java/org/springframework/validation/beanvalidation/MethodValidationRuntimeHintsRegistrar.java
@@ -18,11 +18,9 @@ import jakarta.validation.Validator; -import org.springframework.aop.SpringProxy; -import org.springframework.aop.framework.Advised; +import org.springframework.aop.framework.AopProxyUtils; import org.springframework.aot.hint.RuntimeHints; import org.springframework.aot.hint.RuntimeHintsRegist...
true
Other
spring-projects
spring-framework
5178e9c28eda20859829937c1bc3d38b8b314726.json
Simplify hint registration for Spring AOP proxies Prior to this commit, when users wished to register proxy hints for a Spring AOP JDK dynamic proxy, they were required to explicitly specify SpringProxy, Advised, and DecoratingProxy along with user interfaces. This commit simplifies hint registration for Spring AOP p...
spring-core/src/main/java/org/springframework/aot/hint/ProxyHints.java
@@ -80,6 +80,9 @@ public ProxyHints registerJdkProxy(TypeReference... proxiedInterfaces) { /** * Register that a JDK proxy implementing the specified interfaces is * required. + * <p>When registering a JDK proxy for Spring AOP, consider using + * {@link org.springframework.aop.framework.AopProxyUtils#complete...
true
Other
spring-projects
spring-framework
5178e9c28eda20859829937c1bc3d38b8b314726.json
Simplify hint registration for Spring AOP proxies Prior to this commit, when users wished to register proxy hints for a Spring AOP JDK dynamic proxy, they were required to explicitly specify SpringProxy, Advised, and DecoratingProxy along with user interfaces. This commit simplifies hint registration for Spring AOP p...
spring-tx/src/main/java/org/springframework/transaction/annotation/TransactionBeanRegistrationAotProcessor.java
@@ -20,16 +20,14 @@ import java.util.LinkedHashSet; import java.util.Set; -import org.springframework.aop.SpringProxy; -import org.springframework.aop.framework.Advised; +import org.springframework.aop.framework.AopProxyUtils; import org.springframework.aot.generate.GenerationContext; import org.springframework.a...
true
Other
spring-projects
spring-framework
1458d5f39fef06d01348352fc67d5bc2cbe812e9.json
Add support for @Transactional in native images This commit introduces a TransactionBeanRegistrationAotProcessor in charge of creating the required proxy and reflection hints when @Transactional is detected on beans. It also refines DefaultAopProxyFactory to throw an exception when a subclass-based proxy is created i...
spring-aop/src/main/java/org/springframework/aop/framework/DefaultAopProxyFactory.java
@@ -54,8 +54,7 @@ public class DefaultAopProxyFactory implements AopProxyFactory, Serializable { @Override public AopProxy createAopProxy(AdvisedSupport config) throws AopConfigException { - if (!NativeDetector.inNativeImage() && - (config.isOptimize() || config.isProxyTargetClass() || hasNoUserSuppliedProxyI...
true
Other
spring-projects
spring-framework
1458d5f39fef06d01348352fc67d5bc2cbe812e9.json
Add support for @Transactional in native images This commit introduces a TransactionBeanRegistrationAotProcessor in charge of creating the required proxy and reflection hints when @Transactional is detected on beans. It also refines DefaultAopProxyFactory to throw an exception when a subclass-based proxy is created i...
spring-tx/src/main/java/org/springframework/transaction/annotation/TransactionBeanRegistrationAotProcessor.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
1458d5f39fef06d01348352fc67d5bc2cbe812e9.json
Add support for @Transactional in native images This commit introduces a TransactionBeanRegistrationAotProcessor in charge of creating the required proxy and reflection hints when @Transactional is detected on beans. It also refines DefaultAopProxyFactory to throw an exception when a subclass-based proxy is created i...
spring-tx/src/main/java/org/springframework/transaction/annotation/TransactionRuntimeHintsRegistrar.java
@@ -30,6 +30,7 @@ * * @author Sebastien Deleuze * @since 6.0 + * @see TransactionBeanRegistrationAotProcessor */ public class TransactionRuntimeHintsRegistrar implements RuntimeHintsRegistrar {
true
Other
spring-projects
spring-framework
1458d5f39fef06d01348352fc67d5bc2cbe812e9.json
Add support for @Transactional in native images This commit introduces a TransactionBeanRegistrationAotProcessor in charge of creating the required proxy and reflection hints when @Transactional is detected on beans. It also refines DefaultAopProxyFactory to throw an exception when a subclass-based proxy is created i...
spring-tx/src/main/resources/META-INF/spring/aot.factories
@@ -0,0 +1,2 @@ +org.springframework.beans.factory.aot.BeanRegistrationAotProcessor=\ +org.springframework.transaction.annotation.TransactionBeanRegistrationAotProcessor \ No newline at end of file
true
Other
spring-projects
spring-framework
1458d5f39fef06d01348352fc67d5bc2cbe812e9.json
Add support for @Transactional in native images This commit introduces a TransactionBeanRegistrationAotProcessor in charge of creating the required proxy and reflection hints when @Transactional is detected on beans. It also refines DefaultAopProxyFactory to throw an exception when a subclass-based proxy is created i...
spring-tx/src/test/java/org/springframework/transaction/annotation/TransactionBeanRegistrationAotProcessorTests.java
@@ -0,0 +1,177 @@ +/* + * 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
0387d54607f371b7ff9e28dd8a89ec6203d3a09b.json
Add support for Transactional in native-image This commit annotates @Transactional with @Reflective and registers proxy hints for SpringProxy. Injection of proxied beans via their interfaces still fails in native images with a "No qualifying bean of type MyInterface" error. See gh-28717
spring-aop/src/main/java/org/springframework/aop/SpringProxyRuntimeHintsRegistrar.java
@@ -0,0 +1,37 @@ +/* + * Copyright 2002-2012 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
0387d54607f371b7ff9e28dd8a89ec6203d3a09b.json
Add support for Transactional in native-image This commit annotates @Transactional with @Reflective and registers proxy hints for SpringProxy. Injection of proxied beans via their interfaces still fails in native images with a "No qualifying bean of type MyInterface" error. See gh-28717
spring-aop/src/main/resources/META-INF/spring/aot.factories
@@ -1,2 +1,4 @@ org.springframework.beans.factory.aot.BeanRegistrationAotProcessor=\ org.springframework.aop.scope.ScopedProxyBeanRegistrationAotProcessor +org.springframework.aot.hint.RuntimeHintsRegistrar=\ +org.springframework.aop.SpringProxyRuntimeHintsRegistrar \ No newline at end of file
true
Other
spring-projects
spring-framework
0387d54607f371b7ff9e28dd8a89ec6203d3a09b.json
Add support for Transactional in native-image This commit annotates @Transactional with @Reflective and registers proxy hints for SpringProxy. Injection of proxied beans via their interfaces still fails in native images with a "No qualifying bean of type MyInterface" error. See gh-28717
spring-tx/src/main/java/org/springframework/transaction/annotation/Transactional.java
@@ -23,6 +23,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import org.springframework.aot.hint.annotation.Reflective; import org.springframework.core.annotation.AliasFor; import org.springframework.transaction.TransactionDefinition; @@ -117,6 +118,7 @@ @Retention(Retent...
true
Other
spring-projects
spring-framework
a5ceb964b9e5e9520a425dcf515ea7f36e2dd06b.json
Improve display names in CrossOriginTests
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/CrossOriginTests.java
@@ -621,6 +621,11 @@ protected String initLookupPath(HttpServletRequest request) { } return super.initLookupPath(request); } + + @Override + public String toString() { + return "PatternParser = " + (getPatternParser() != null ? getPatternParser().getClass().getSimpleName() : null) ; + } } }
false
Other
spring-projects
spring-framework
d533eb4a55baa9e03850801c30071af33bb9cbc8.json
Use Set.of() in StringToBooleanConverter
spring-core/src/main/java/org/springframework/core/convert/support/StringToBooleanConverter.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. @@ -16,36 +16,24 @@ package org.springframew...
false
Other
spring-projects
spring-framework
007bdede4693332eb9fb857085fd87c389c3ebfa.json
Add missing check to avoid re-initialization Noticed during review of #28736 that a check protecting against re-initialization was accidentally removed in commit 3d6e38bb43fe86cc58bc816eff13b968c1e0884f.
spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebSocketConfigurationSupport.java
@@ -84,12 +84,14 @@ protected void registerWebSocketHandlers(WebSocketHandlerRegistry registry) { @Bean @Nullable public TaskScheduler defaultSockJsTaskScheduler() { - if (initHandlerRegistry().requiresTaskScheduler()) { - ThreadPoolTaskScheduler threadPoolScheduler = new ThreadPoolTaskScheduler(); - threadP...
false
Other
spring-projects
spring-framework
fd265a18c619b21f97f753871c6e1c32df65ba32.json
Add runtime hints for scheduling support Closes gh-28696
spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java
@@ -24,6 +24,7 @@ import java.lang.annotation.Target; import java.util.concurrent.TimeUnit; +import org.springframework.aot.hint.annotation.Reflective; import org.springframework.scheduling.config.ScheduledTaskRegistrar; /** @@ -61,6 +62,7 @@ @Retention(RetentionPolicy.RUNTIME) @Documented @Repeatable(Schedu...
true
Other
spring-projects
spring-framework
fd265a18c619b21f97f753871c6e1c32df65ba32.json
Add runtime hints for scheduling support Closes gh-28696
spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java
@@ -55,6 +55,7 @@ import org.springframework.context.ApplicationContextAware; import org.springframework.context.ApplicationListener; import org.springframework.context.EmbeddedValueResolverAware; +import org.springframework.context.annotation.ImportRuntimeHints; import org.springframework.context.event.ContextRefr...
true
Other
spring-projects
spring-framework
fd265a18c619b21f97f753871c6e1c32df65ba32.json
Add runtime hints for scheduling support Closes gh-28696
spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationRuntimeHintsRegistrar.java
@@ -0,0 +1,37 @@ +/* + * 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
fd265a18c619b21f97f753871c6e1c32df65ba32.json
Add runtime hints for scheduling support Closes gh-28696
spring-context/src/main/java/org/springframework/scheduling/annotation/Schedules.java
@@ -22,6 +22,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import org.springframework.aot.hint.annotation.Reflective; + /** * Container annotation that aggregates several {@link Scheduled} annotations. * @@ -40,6 +42,7 @@ @Target({ElementType.METHOD, ElementType.ANNOTA...
true