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
b64edebadc6e26abaaf670ef6eec18cf38aea1d3.json
Improve ConstantFieldFeature compatibility This commit makes ConstantFieldFeature compatible with GraalVM 22.2 while retaining GraalVM 22.1 compatibility. See gh-28624
spring-core/graalvm/src/main/java/org/springframework/aot/graalvm/ConstantFieldFeature.java
@@ -41,9 +41,9 @@ private void duringSetup(DuringSetupAccessImpl access) { DebugContext debug = access.getDebugContext(); try (DebugContext.Scope scope = debug.scope("ConstantFieldFeature.duringSetup")) { debug.log("Installing constant field substitution processor : " + scope); - ClassLoader applicationClas...
true
Other
spring-projects
spring-framework
b64edebadc6e26abaaf670ef6eec18cf38aea1d3.json
Improve ConstantFieldFeature compatibility This commit makes ConstantFieldFeature compatible with GraalVM 22.2 while retaining GraalVM 22.1 compatibility. See gh-28624
spring-core/graalvm/src/main/java/org/springframework/aot/graalvm/ConstantReadableJavaField.java
@@ -18,6 +18,7 @@ import java.lang.annotation.Annotation; +import com.oracle.graal.pointsto.infrastructure.WrappedElement; import com.oracle.svm.core.meta.ReadableJavaField; import jdk.vm.ci.meta.JavaConstant; import jdk.vm.ci.meta.JavaType; @@ -31,7 +32,7 @@ * @author Phillip Webb * @since 6.0 */ -class ...
true
Other
spring-projects
spring-framework
f732fab8206f83e012fa0f6f6b05089ef3f4d0c8.json
Delete unused imports and dead code in CGLIB fork
spring-core/src/main/java/org/springframework/cglib/beans/BulkBean.java
@@ -15,11 +15,7 @@ */ package org.springframework.cglib.beans; -import java.lang.reflect.Constructor; -import java.lang.reflect.Method; -import java.lang.reflect.Modifier; import java.security.ProtectionDomain; -import java.util.*; import org.springframework.cglib.core.*; import org.springframework.asm.ClassVis...
true
Other
spring-projects
spring-framework
f732fab8206f83e012fa0f6f6b05089ef3f4d0c8.json
Delete unused imports and dead code in CGLIB fork
spring-core/src/main/java/org/springframework/cglib/beans/BulkBeanEmitter.java
@@ -15,10 +15,8 @@ */ package org.springframework.cglib.beans; -import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.lang.reflect.Modifier; -import java.util.*; import org.springframework.cglib.core.*; import org.springframework.asm.ClassVisitor; import org.springframework.asm.Ty...
true
Other
spring-projects
spring-framework
f732fab8206f83e012fa0f6f6b05089ef3f4d0c8.json
Delete unused imports and dead code in CGLIB fork
spring-core/src/main/java/org/springframework/cglib/beans/BulkBeanException.java
@@ -15,8 +15,6 @@ */ package org.springframework.cglib.beans; -import org.springframework.cglib.core.CodeGenerationException; - @SuppressWarnings({"rawtypes", "unchecked", "serial"}) public class BulkBeanException extends RuntimeException {
true
Other
spring-projects
spring-framework
f732fab8206f83e012fa0f6f6b05089ef3f4d0c8.json
Delete unused imports and dead code in CGLIB fork
spring-core/src/main/java/org/springframework/cglib/core/ReflectUtils.java
@@ -38,7 +38,6 @@ import java.util.Map; import java.util.Set; -import org.springframework.asm.Attribute; import org.springframework.asm.Type; /** @@ -626,10 +625,6 @@ public Signature getSignature() { public Type[] getExceptionTypes() { return ReflectUtils.getExceptionTypes(member); } - - public ...
true
Other
spring-projects
spring-framework
f732fab8206f83e012fa0f6f6b05089ef3f4d0c8.json
Delete unused imports and dead code in CGLIB fork
spring-core/src/main/java/org/springframework/cglib/proxy/Enhancer.java
@@ -1247,7 +1247,6 @@ private void emitMethods(final ClassEmitter ce, List methods, List actualMethods se.invoke_constructor(THREAD_LOCAL, CSTRUCT_NULL); se.putfield(THREAD_CALLBACKS_FIELD); - final Object[] state = new Object[1]; CallbackGenerator.Context context = new CallbackGenerator.Context() { pub...
true
Other
spring-projects
spring-framework
c5987d7c3754e53ae52f3db55dc6d3ab8a3e84c7.json
Fix typo in test
spring-context/src/test/java/org/springframework/context/support/GenericApplicationContextTests.java
@@ -232,7 +232,7 @@ void getResourceWithCustomResourceLoader() { assertGetResourceSemantics(new FileSystemResourceLoader(), FileSystemResource.class); } - private void assertGetResourceSemantics(ResourceLoader resourceLoader, Class<? extends Resource> defaultResouceType) { + private void assertGetResourceSemanti...
false
Other
spring-projects
spring-framework
50240bb609b6441390d436005a7f2e7a4cdf5454.json
Add runtime hints for tx management Closes gh-28688
spring-tx/src/main/java/org/springframework/transaction/annotation/ProxyTransactionManagementConfiguration.java
@@ -19,6 +19,7 @@ import org.springframework.beans.factory.config.BeanDefinition; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.ImportRuntimeHints; import org.springframework.context.annotation.Role; i...
true
Other
spring-projects
spring-framework
50240bb609b6441390d436005a7f2e7a4cdf5454.json
Add runtime hints for tx management Closes gh-28688
spring-tx/src/main/java/org/springframework/transaction/annotation/TransactionRuntimeHintsRegistrar.java
@@ -0,0 +1,47 @@ +/* + * 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
2afe560e41c52c51a36314de3884416a9b1ed432.json
Replace forEach with putAll See gh-28646
spring-webflux/src/main/java/org/springframework/web/reactive/BindingContext.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. @@ -136,7 +136,7 @@ public Mono<Map<String, Obj...
true
Other
spring-projects
spring-framework
2afe560e41c52c51a36314de3884416a9b1ed432.json
Replace forEach with putAll See gh-28646
spring-webflux/src/main/java/org/springframework/web/reactive/socket/client/JettyWebSocketClient.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. @@ -182,7 +182,7 @@ private Object createHandle...
true
Other
spring-projects
spring-framework
2afe560e41c52c51a36314de3884416a9b1ed432.json
Replace forEach with putAll See gh-28646
spring-webflux/src/main/java/org/springframework/web/reactive/socket/client/StandardWebSocketClient.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. @@ -171,7 +171,7 @@ public void beforeRequest(M...
true
Other
spring-projects
spring-framework
2afe560e41c52c51a36314de3884416a9b1ed432.json
Replace forEach with putAll See gh-28646
spring-webflux/src/main/java/org/springframework/web/reactive/socket/client/UndertowWebSocketClient.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. @@ -243,15 +243,15 @@ public HttpHeaders getRes...
true
Other
spring-projects
spring-framework
52ec031025e6a038c8aa9f14d0705cd4a7af9953.json
Improve RuntimeHintsAgent test coverage In order to write proper integration tests for the `RuntimeHintsAgent`, we need to load the java agent on the JVM and instrument test code to check that invocations are properly recorded. This commit adds the relevant build configuration to the integration-tests module and adds...
integration-tests/integration-tests.gradle
@@ -1,10 +1,15 @@ +plugins { + id 'org.springframework.build.runtimehints-agent' +} + description = "Spring Integration Tests" dependencies { testImplementation(project(":spring-aop")) testImplementation(project(":spring-beans")) testImplementation(project(":spring-context")) testImplementation(project(":sp...
true
Other
spring-projects
spring-framework
52ec031025e6a038c8aa9f14d0705cd4a7af9953.json
Improve RuntimeHintsAgent test coverage In order to write proper integration tests for the `RuntimeHintsAgent`, we need to load the java agent on the JVM and instrument test code to check that invocations are properly recorded. This commit adds the relevant build configuration to the integration-tests module and adds...
integration-tests/src/test/java/org/springframework/aot/RuntimeHintsAgentTests.java
@@ -0,0 +1,268 @@ +/* + * 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
52ec031025e6a038c8aa9f14d0705cd4a7af9953.json
Improve RuntimeHintsAgent test coverage In order to write proper integration tests for the `RuntimeHintsAgent`, we need to load the java agent on the JVM and instrument test code to check that invocations are properly recorded. This commit adds the relevant build configuration to the integration-tests module and adds...
integration-tests/src/test/java/org/springframework/aot/test/ReflectionInvocationsTests.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
52ec031025e6a038c8aa9f14d0705cd4a7af9953.json
Improve RuntimeHintsAgent test coverage In order to write proper integration tests for the `RuntimeHintsAgent`, we need to load the java agent on the JVM and instrument test code to check that invocations are properly recorded. This commit adds the relevant build configuration to the integration-tests module and adds...
integration-tests/src/test/java/org/springframework/aot/test/SampleReflection.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
444a9bd0117cb5bec82b689e3f4e4212774ad07d.json
Add testing infrastructure for RuntimeHintsAgent This commit adds the supporting testing infrastructure using the `RuntimeHintsAgent`. Given that the agent is loaded by the JVM running the test suite, we can then use it to record method invocations at runtime and check whether the prepared `RuntimeHints` match the exp...
spring-core-test/src/main/java/org/springframework/aot/test/agent/EnabledIfRuntimeHintsAgent.java
@@ -0,0 +1,63 @@ +/* + * 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
444a9bd0117cb5bec82b689e3f4e4212774ad07d.json
Add testing infrastructure for RuntimeHintsAgent This commit adds the supporting testing infrastructure using the `RuntimeHintsAgent`. Given that the agent is loaded by the JVM running the test suite, we can then use it to record method invocations at runtime and check whether the prepared `RuntimeHints` match the exp...
spring-core-test/src/main/java/org/springframework/aot/test/agent/RuntimeHintsAgentCondition.java
@@ -0,0 +1,46 @@ +/* + * 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
444a9bd0117cb5bec82b689e3f4e4212774ad07d.json
Add testing infrastructure for RuntimeHintsAgent This commit adds the supporting testing infrastructure using the `RuntimeHintsAgent`. Given that the agent is loaded by the JVM running the test suite, we can then use it to record method invocations at runtime and check whether the prepared `RuntimeHints` match the exp...
spring-core-test/src/main/java/org/springframework/aot/test/agent/RuntimeHintsInvocations.java
@@ -0,0 +1,50 @@ +/* + * 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
444a9bd0117cb5bec82b689e3f4e4212774ad07d.json
Add testing infrastructure for RuntimeHintsAgent This commit adds the supporting testing infrastructure using the `RuntimeHintsAgent`. Given that the agent is loaded by the JVM running the test suite, we can then use it to record method invocations at runtime and check whether the prepared `RuntimeHints` match the exp...
spring-core-test/src/main/java/org/springframework/aot/test/agent/RuntimeHintsInvocationsAssert.java
@@ -0,0 +1,119 @@ +/* + * 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
444a9bd0117cb5bec82b689e3f4e4212774ad07d.json
Add testing infrastructure for RuntimeHintsAgent This commit adds the supporting testing infrastructure using the `RuntimeHintsAgent`. Given that the agent is loaded by the JVM running the test suite, we can then use it to record method invocations at runtime and check whether the prepared `RuntimeHints` match the exp...
spring-core-test/src/main/java/org/springframework/aot/test/agent/RuntimeHintsRecorder.java
@@ -0,0 +1,76 @@ +/* + * 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
444a9bd0117cb5bec82b689e3f4e4212774ad07d.json
Add testing infrastructure for RuntimeHintsAgent This commit adds the supporting testing infrastructure using the `RuntimeHintsAgent`. Given that the agent is loaded by the JVM running the test suite, we can then use it to record method invocations at runtime and check whether the prepared `RuntimeHints` match the exp...
spring-core-test/src/main/java/org/springframework/aot/test/agent/package-info.java
@@ -0,0 +1,9 @@ +/** + * Testing support for the {@link org.springframework.aot.agent.RuntimeHintsAgent}. + */ +@NonNullApi +@NonNullFields +package org.springframework.aot.test.agent; + +import org.springframework.lang.NonNullApi; +import org.springframework.lang.NonNullFields;
true
Other
spring-projects
spring-framework
444a9bd0117cb5bec82b689e3f4e4212774ad07d.json
Add testing infrastructure for RuntimeHintsAgent This commit adds the supporting testing infrastructure using the `RuntimeHintsAgent`. Given that the agent is loaded by the JVM running the test suite, we can then use it to record method invocations at runtime and check whether the prepared `RuntimeHints` match the exp...
src/checkstyle/checkstyle-suppressions.xml
@@ -40,6 +40,7 @@ <!-- spring-core-test --> <suppress files="CompileWithTargetClassAccess" checks="IllegalImport" id="bannedJUnitJupiterImports" /> + <suppress files="org[\\/]springframework[\\/]aot[\\/]test[\\/]agent[\\/].+" checks="IllegalImport" id="bannedJUnitJupiterImports" /> <!-- spring-expression --> ...
true
Other
spring-projects
spring-framework
c86e67878853ef147940ddffa368eecf8eeaec03.json
Add RuntimeHintsAgent Java agent With the introduction of `RuntimeHints`, we can now contribute reflection, resources and proxies hints that describe the expected runtime behavior of the application. While this can be verified at runtime with smoke tests, managing such tests and compiling to native there is not very e...
spring-core-test/spring-core-test.gradle
@@ -2,9 +2,19 @@ description = "Spring Core Test" dependencies { api(project(":spring-core")) + api("org.junit.jupiter:junit-jupiter-api") api("org.assertj:assertj-core") api("com.thoughtworks.qdox:qdox") compileOnly("org.junit.jupiter:junit-jupiter") compileOnly("org.junit.platform:junit-platform-engine")...
true
Other
spring-projects
spring-framework
c86e67878853ef147940ddffa368eecf8eeaec03.json
Add RuntimeHintsAgent Java agent With the introduction of `RuntimeHints`, we can now contribute reflection, resources and proxies hints that describe the expected runtime behavior of the application. While this can be verified at runtime with smoke tests, managing such tests and compiling to native there is not very e...
spring-core-test/src/main/java/org/springframework/aot/agent/HintType.java
@@ -0,0 +1,76 @@ +/* + * 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
c86e67878853ef147940ddffa368eecf8eeaec03.json
Add RuntimeHintsAgent Java agent With the introduction of `RuntimeHints`, we can now contribute reflection, resources and proxies hints that describe the expected runtime behavior of the application. While this can be verified at runtime with smoke tests, managing such tests and compiling to native there is not very e...
spring-core-test/src/main/java/org/springframework/aot/agent/InstrumentedBridgeMethods.java
@@ -0,0 +1,527 @@ +/* + * 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
c86e67878853ef147940ddffa368eecf8eeaec03.json
Add RuntimeHintsAgent Java agent With the introduction of `RuntimeHints`, we can now contribute reflection, resources and proxies hints that describe the expected runtime behavior of the application. While this can be verified at runtime with smoke tests, managing such tests and compiling to native there is not very e...
spring-core-test/src/main/java/org/springframework/aot/agent/InstrumentedMethod.java
@@ -0,0 +1,397 @@ +/* + * 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
c86e67878853ef147940ddffa368eecf8eeaec03.json
Add RuntimeHintsAgent Java agent With the introduction of `RuntimeHints`, we can now contribute reflection, resources and proxies hints that describe the expected runtime behavior of the application. While this can be verified at runtime with smoke tests, managing such tests and compiling to native there is not very e...
spring-core-test/src/main/java/org/springframework/aot/agent/InvocationsRecorderClassTransformer.java
@@ -0,0 +1,112 @@ +/* + * 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
c86e67878853ef147940ddffa368eecf8eeaec03.json
Add RuntimeHintsAgent Java agent With the introduction of `RuntimeHints`, we can now contribute reflection, resources and proxies hints that describe the expected runtime behavior of the application. While this can be verified at runtime with smoke tests, managing such tests and compiling to native there is not very e...
spring-core-test/src/main/java/org/springframework/aot/agent/InvocationsRecorderClassVisitor.java
@@ -0,0 +1,136 @@ +/* + * 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
c86e67878853ef147940ddffa368eecf8eeaec03.json
Add RuntimeHintsAgent Java agent With the introduction of `RuntimeHints`, we can now contribute reflection, resources and proxies hints that describe the expected runtime behavior of the application. While this can be verified at runtime with smoke tests, managing such tests and compiling to native there is not very e...
spring-core-test/src/main/java/org/springframework/aot/agent/MethodReference.java
@@ -0,0 +1,84 @@ +/* + * 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
c86e67878853ef147940ddffa368eecf8eeaec03.json
Add RuntimeHintsAgent Java agent With the introduction of `RuntimeHints`, we can now contribute reflection, resources and proxies hints that describe the expected runtime behavior of the application. While this can be verified at runtime with smoke tests, managing such tests and compiling to native there is not very e...
spring-core-test/src/main/java/org/springframework/aot/agent/RecordedInvocation.java
@@ -0,0 +1,250 @@ +/* + * 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
c86e67878853ef147940ddffa368eecf8eeaec03.json
Add RuntimeHintsAgent Java agent With the introduction of `RuntimeHints`, we can now contribute reflection, resources and proxies hints that describe the expected runtime behavior of the application. While this can be verified at runtime with smoke tests, managing such tests and compiling to native there is not very e...
spring-core-test/src/main/java/org/springframework/aot/agent/RecordedInvocationsListener.java
@@ -0,0 +1,34 @@ +/* + * 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
c86e67878853ef147940ddffa368eecf8eeaec03.json
Add RuntimeHintsAgent Java agent With the introduction of `RuntimeHints`, we can now contribute reflection, resources and proxies hints that describe the expected runtime behavior of the application. While this can be verified at runtime with smoke tests, managing such tests and compiling to native there is not very e...
spring-core-test/src/main/java/org/springframework/aot/agent/RecordedInvocationsPublisher.java
@@ -0,0 +1,65 @@ +/* + * 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
c86e67878853ef147940ddffa368eecf8eeaec03.json
Add RuntimeHintsAgent Java agent With the introduction of `RuntimeHints`, we can now contribute reflection, resources and proxies hints that describe the expected runtime behavior of the application. While this can be verified at runtime with smoke tests, managing such tests and compiling to native there is not very e...
spring-core-test/src/main/java/org/springframework/aot/agent/RuntimeHintsAgent.java
@@ -0,0 +1,109 @@ +/* + * 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
c86e67878853ef147940ddffa368eecf8eeaec03.json
Add RuntimeHintsAgent Java agent With the introduction of `RuntimeHints`, we can now contribute reflection, resources and proxies hints that describe the expected runtime behavior of the application. While this can be verified at runtime with smoke tests, managing such tests and compiling to native there is not very e...
spring-core-test/src/main/java/org/springframework/aot/agent/package-info.java
@@ -0,0 +1,9 @@ +/** + * Support for recording method invocations relevant to {@link org.springframework.aot.hint.RuntimeHints} metadata. + */ +@NonNullApi +@NonNullFields +package org.springframework.aot.agent; + +import org.springframework.lang.NonNullApi; +import org.springframework.lang.NonNullFields;
true
Other
spring-projects
spring-framework
c86e67878853ef147940ddffa368eecf8eeaec03.json
Add RuntimeHintsAgent Java agent With the introduction of `RuntimeHints`, we can now contribute reflection, resources and proxies hints that describe the expected runtime behavior of the application. While this can be verified at runtime with smoke tests, managing such tests and compiling to native there is not very e...
spring-core-test/src/test/java/org/springframework/aot/agent/InstrumentedMethodTests.java
@@ -0,0 +1,650 @@ +/* + * 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
ecdd934658fa99c3420fc583331edb1be6e1634d.json
Add runtime hints for AbstractHandshakeHandler Closes gh-28697
spring-websocket/src/main/java/org/springframework/web/socket/server/support/HandshakeHandlerRuntimeHintsRegistrar.java
@@ -0,0 +1,91 @@ +/* + * 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
ecdd934658fa99c3420fc583331edb1be6e1634d.json
Add runtime hints for AbstractHandshakeHandler Closes gh-28697
spring-websocket/src/main/resources/META-INF/spring/aot.factories
@@ -0,0 +1,2 @@ +org.springframework.aot.hint.RuntimeHintsRegistrar= \ +org.springframework.web.socket.server.support.HandshakeHandlerRuntimeHintsRegistrar \ No newline at end of file
true
Other
spring-projects
spring-framework
4ec3e1042a2018562e1aa1d1bc79c6d9b624d004.json
Add runtime hints for WebFlux Closes gh-28701
spring-web/src/main/java/org/springframework/http/codec/CodecConfigurerHintsRegistrar.java
@@ -0,0 +1,46 @@ +/* + * 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
4ec3e1042a2018562e1aa1d1bc79c6d9b624d004.json
Add runtime hints for WebFlux Closes gh-28701
spring-web/src/main/resources/META-INF/spring/aot.factories
@@ -1,2 +1,3 @@ org.springframework.aot.hint.RuntimeHintsRegistrar= \ -org.springframework.http.MediaTypeResourceHintsRegistrar \ No newline at end of file +org.springframework.http.MediaTypeResourceHintsRegistrar,\ +org.springframework.http.codec.CodecConfigurerHintsRegistrar \ No newline at end of file
true
Other
spring-projects
spring-framework
4ec3e1042a2018562e1aa1d1bc79c6d9b624d004.json
Add runtime hints for WebFlux Closes gh-28701
spring-webflux/src/main/java/org/springframework/web/reactive/config/WebFluxConfigurationSupport.java
@@ -28,6 +28,7 @@ import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.ImportRuntimeHints; import org.springframework.core.ReactiveAdapterRegistry; import...
true
Other
spring-projects
spring-framework
8a9b082d8a0f84e7b72416e57e9b6a7a9321567e.json
Improve MappingMatch determination in mock request MockHttpServletRequest now checks the requestURI and servletPath to check whether they imply a Servlet path mapping, which is the case when the requestURI is longer than the contextPath + servletPath. This is essential when parsed patterns are in use in which case th...
spring-test/src/main/java/org/springframework/mock/web/MockHttpServletRequest.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. @@ -52,10 +52,12 @@ import jakarta.servlet.Ser...
true
Other
spring-projects
spring-framework
8a9b082d8a0f84e7b72416e57e9b6a7a9321567e.json
Improve MappingMatch determination in mock request MockHttpServletRequest now checks the requestURI and servletPath to check whether they imply a Servlet path mapping, which is the case when the requestURI is longer than the contextPath + servletPath. This is essential when parsed patterns are in use in which case th...
spring-web/src/testFixtures/java/org/springframework/web/testfixture/servlet/MockHttpServletRequest.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. @@ -57,6 +57,7 @@ import jakarta.servlet.http....
true
Other
spring-projects
spring-framework
fb1aa4f5d5601ddd1fe7928b39c6408a3003a59a.json
Fix BindingReflectionHintsRegistrar enum support This commit prevents a StackOverflowError in BindingReflectionHintsRegistrar when processing enum types and refine related generated hints. See gh-28683
spring-core/src/main/java/org/springframework/aot/hint/support/BindingReflectionHintsRegistrar.java
@@ -98,7 +98,8 @@ private void registerReflectionHints(ReflectionHints hints, Set<Type> seen, Type PropertyDescriptor[] propertyDescriptors = beanInfo.getPropertyDescriptors(); for (PropertyDescriptor propertyDescriptor : propertyDescriptors) { Method writeMethod = propertyDescriptor.getWriteMetho...
true
Other
spring-projects
spring-framework
fb1aa4f5d5601ddd1fe7928b39c6408a3003a59a.json
Fix BindingReflectionHintsRegistrar enum support This commit prevents a StackOverflowError in BindingReflectionHintsRegistrar when processing enum types and refine related generated hints. See gh-28683
spring-core/src/test/java/org/springframework/aot/hint/support/BindingReflectionHintsRegistrarTests.java
@@ -196,6 +196,13 @@ void registerTypeForSerializationWithMultipleLevelsAndCollection() { typeHint -> assertThat(typeHint.getType()).isEqualTo(TypeReference.of(Set.class))); } + @Test + void registerTypeForSerializationWithEnum() { + bindingRegistrar.registerReflectionHints(this.hints.reflection(), SampleEnum...
true
Other
spring-projects
spring-framework
24c46142c63ff0375e83374766903ac87c86d85d.json
Add docs on exceptions for HTTP interface client Closes gh-28533
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/support/WebClientAdapter.java
@@ -25,7 +25,6 @@ import org.springframework.http.HttpMethod; import org.springframework.http.ResponseEntity; import org.springframework.util.Assert; -import org.springframework.web.reactive.function.client.ClientResponse; import org.springframework.web.reactive.function.client.WebClient; import org.springframewor...
true
Other
spring-projects
spring-framework
24c46142c63ff0375e83374766903ac87c86d85d.json
Add docs on exceptions for HTTP interface client Closes gh-28533
src/docs/asciidoc/integration.adoc
@@ -371,7 +371,7 @@ methods for HTTP exchanges. You can then generate a proxy that implements this i and performs the exchanges. This helps to simplify HTTP remote access which often involves a facade that wraps the details of using the underlying HTTP client. -To start, declare an interface with annotated, HTTP ex...
true
Other
spring-projects
spring-framework
55d7f7a014df12642b100abf17fa65502d307629.json
Add support for generating methods Add `GeneratedMethods` and `GeneratedMethod` support classes which can be used during code generation to generation additional methods that will ultimately be included in a `JavaFile`. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/GeneratedMethod.java
@@ -0,0 +1,96 @@ +/* + * 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
55d7f7a014df12642b100abf17fa65502d307629.json
Add support for generating methods Add `GeneratedMethods` and `GeneratedMethod` support classes which can be used during code generation to generation additional methods that will ultimately be included in a `JavaFile`. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/GeneratedMethods.java
@@ -0,0 +1,102 @@ +/* + * 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
55d7f7a014df12642b100abf17fa65502d307629.json
Add support for generating methods Add `GeneratedMethods` and `GeneratedMethod` support classes which can be used during code generation to generation additional methods that will ultimately be included in a `JavaFile`. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/MethodGenerator.java
@@ -0,0 +1,72 @@ +/* + * 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
55d7f7a014df12642b100abf17fa65502d307629.json
Add support for generating methods Add `GeneratedMethods` and `GeneratedMethod` support classes which can be used during code generation to generation additional methods that will ultimately be included in a `JavaFile`. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/MethodGeneratorWithName.java
@@ -0,0 +1,71 @@ +/* + * 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
55d7f7a014df12642b100abf17fa65502d307629.json
Add support for generating methods Add `GeneratedMethods` and `GeneratedMethod` support classes which can be used during code generation to generation additional methods that will ultimately be included in a `JavaFile`. See gh-28414
spring-core/src/test/java/org/springframework/aot/generate/GeneratedMethodTests.java
@@ -0,0 +1,72 @@ +/* + * 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
55d7f7a014df12642b100abf17fa65502d307629.json
Add support for generating methods Add `GeneratedMethods` and `GeneratedMethod` support classes which can be used during code generation to generation additional methods that will ultimately be included in a `JavaFile`. See gh-28414
spring-core/src/test/java/org/springframework/aot/generate/GeneratedMethodsTests.java
@@ -0,0 +1,100 @@ +/* + * 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
55d7f7a014df12642b100abf17fa65502d307629.json
Add support for generating methods Add `GeneratedMethods` and `GeneratedMethod` support classes which can be used during code generation to generation additional methods that will ultimately be included in a `JavaFile`. See gh-28414
spring-core/src/test/java/org/springframework/aot/generate/MethodGeneratorWithNameTests.java
@@ -0,0 +1,61 @@ +/* + * 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
16456342f5c55e691596c5577c72ed6dceef6ade.json
Add support for generating method names Add `MethodNameGenerator` to support generation of method names. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/MethodNameGenerator.java
@@ -0,0 +1,124 @@ +/* + * 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
16456342f5c55e691596c5577c72ed6dceef6ade.json
Add support for generating method names Add `MethodNameGenerator` to support generation of method names. See gh-28414
spring-core/src/test/java/org/springframework/aot/generate/MethodNameGeneratorTests.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
ca2b5e068bbecaac9f4170bc7c17d83008900f4d.json
Add support for generating class names Add `ClassNameGenerator` to support generation of class names. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/ClassNameGenerator.java
@@ -0,0 +1,108 @@ +/* + * 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
ca2b5e068bbecaac9f4170bc7c17d83008900f4d.json
Add support for generating class names Add `ClassNameGenerator` to support generation of class names. See gh-28414
spring-core/src/test/java/org/springframework/aot/generate/ClassNameGeneratorTests.java
@@ -0,0 +1,119 @@ +/* + * 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
9c12833e160aa6d964d1c323c0af8d8847f01e12.json
Add withFiles support to TestCompiler Update `TestCompiler` so that `withFiles` can be used to quickly configure the compiler with `InMemoryGeneratedFiles`. See gh-28414
spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/TestCompiler.java
@@ -17,6 +17,7 @@ package org.springframework.aot.test.generator.compile; import java.io.PrintStream; +import java.util.ArrayList; import java.util.List; import java.util.Locale; import java.util.function.Consumer; @@ -29,6 +30,8 @@ import javax.tools.StandardJavaFileManager; import javax.tools.ToolProvider; ...
false
Other
spring-projects
spring-framework
99173fbd4f082172d8d9cbe92d0cd1f2b313e19c.json
Add GeneratedFiles interface and support classes Add a `GeneratedFiles` interface that can be used to add generated source, class and resource files. An in-memory implementation is provided for testing and a filesystem implementation is provided to actually save the files to disk. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/AppendableConsumerInputStreamSource.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
99173fbd4f082172d8d9cbe92d0cd1f2b313e19c.json
Add GeneratedFiles interface and support classes Add a `GeneratedFiles` interface that can be used to add generated source, class and resource files. An in-memory implementation is provided for testing and a filesystem implementation is provided to actually save the files to disk. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/FileSystemGeneratedFiles.java
@@ -0,0 +1,101 @@ +/* + * 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
99173fbd4f082172d8d9cbe92d0cd1f2b313e19c.json
Add GeneratedFiles interface and support classes Add a `GeneratedFiles` interface that can be used to add generated source, class and resource files. An in-memory implementation is provided for testing and a filesystem implementation is provided to actually save the files to disk. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/GeneratedFiles.java
@@ -0,0 +1,207 @@ +/* + * 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
99173fbd4f082172d8d9cbe92d0cd1f2b313e19c.json
Add GeneratedFiles interface and support classes Add a `GeneratedFiles` interface that can be used to add generated source, class and resource files. An in-memory implementation is provided for testing and a filesystem implementation is provided to actually save the files to disk. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/InMemoryGeneratedFiles.java
@@ -0,0 +1,95 @@ +/* + * 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
99173fbd4f082172d8d9cbe92d0cd1f2b313e19c.json
Add GeneratedFiles interface and support classes Add a `GeneratedFiles` interface that can be used to add generated source, class and resource files. An in-memory implementation is provided for testing and a filesystem implementation is provided to actually save the files to disk. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/package-info.java
@@ -0,0 +1,10 @@ +/** + * Support classes for components that contribute generated code equivalent to a + * runtime behavior. + */ +@NonNullApi +@NonNullFields +package org.springframework.aot.generate; + +import org.springframework.lang.NonNullApi; +import org.springframework.lang.NonNullFields;
true
Other
spring-projects
spring-framework
99173fbd4f082172d8d9cbe92d0cd1f2b313e19c.json
Add GeneratedFiles interface and support classes Add a `GeneratedFiles` interface that can be used to add generated source, class and resource files. An in-memory implementation is provided for testing and a filesystem implementation is provided to actually save the files to disk. See gh-28414
spring-core/src/test/java/org/springframework/aot/generate/FileSystemGeneratedFilesTests.java
@@ -0,0 +1,112 @@ +/* + * 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
99173fbd4f082172d8d9cbe92d0cd1f2b313e19c.json
Add GeneratedFiles interface and support classes Add a `GeneratedFiles` interface that can be used to add generated source, class and resource files. An in-memory implementation is provided for testing and a filesystem implementation is provided to actually save the files to disk. See gh-28414
spring-core/src/test/java/org/springframework/aot/generate/GeneratedFilesTests.java
@@ -0,0 +1,171 @@ +/* + * 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
99173fbd4f082172d8d9cbe92d0cd1f2b313e19c.json
Add GeneratedFiles interface and support classes Add a `GeneratedFiles` interface that can be used to add generated source, class and resource files. An in-memory implementation is provided for testing and a filesystem implementation is provided to actually save the files to disk. See gh-28414
spring-core/src/test/java/org/springframework/aot/generate/InMemoryGeneratedFilesTests.java
@@ -0,0 +1,87 @@ +/* + * 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
b3efdf3c2b5b55624164d184d237795be6e7b3b5.json
Add Throwable functional interfaces Add 'Throwable' variants of the `Consumer`, `Function`, `BiFunction` and `Supplier` interfaces that wrap checked exceptions or allow calls to be made that throw them. Closes gh-28417
spring-core/src/main/java/org/springframework/util/function/ThrowingBiFunction.java
@@ -0,0 +1,135 @@ +/* + * 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
b3efdf3c2b5b55624164d184d237795be6e7b3b5.json
Add Throwable functional interfaces Add 'Throwable' variants of the `Consumer`, `Function`, `BiFunction` and `Supplier` interfaces that wrap checked exceptions or allow calls to be made that throw them. Closes gh-28417
spring-core/src/main/java/org/springframework/util/function/ThrowingConsumer.java
@@ -0,0 +1,121 @@ +/* + * 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
b3efdf3c2b5b55624164d184d237795be6e7b3b5.json
Add Throwable functional interfaces Add 'Throwable' variants of the `Consumer`, `Function`, `BiFunction` and `Supplier` interfaces that wrap checked exceptions or allow calls to be made that throw them. Closes gh-28417
spring-core/src/main/java/org/springframework/util/function/ThrowingFunction.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
b3efdf3c2b5b55624164d184d237795be6e7b3b5.json
Add Throwable functional interfaces Add 'Throwable' variants of the `Consumer`, `Function`, `BiFunction` and `Supplier` interfaces that wrap checked exceptions or allow calls to be made that throw them. Closes gh-28417
spring-core/src/main/java/org/springframework/util/function/ThrowingSupplier.java
@@ -0,0 +1,120 @@ +/* + * 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
b3efdf3c2b5b55624164d184d237795be6e7b3b5.json
Add Throwable functional interfaces Add 'Throwable' variants of the `Consumer`, `Function`, `BiFunction` and `Supplier` interfaces that wrap checked exceptions or allow calls to be made that throw them. Closes gh-28417
spring-core/src/test/java/org/springframework/util/function/ThrowingBiFunctionTests.java
@@ -0,0 +1,87 @@ +/* + * 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
b3efdf3c2b5b55624164d184d237795be6e7b3b5.json
Add Throwable functional interfaces Add 'Throwable' variants of the `Consumer`, `Function`, `BiFunction` and `Supplier` interfaces that wrap checked exceptions or allow calls to be made that throw them. Closes gh-28417
spring-core/src/test/java/org/springframework/util/function/ThrowingConsumerTests.java
@@ -0,0 +1,87 @@ +/* + * 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
b3efdf3c2b5b55624164d184d237795be6e7b3b5.json
Add Throwable functional interfaces Add 'Throwable' variants of the `Consumer`, `Function`, `BiFunction` and `Supplier` interfaces that wrap checked exceptions or allow calls to be made that throw them. Closes gh-28417
spring-core/src/test/java/org/springframework/util/function/ThrowingFunctionTests.java
@@ -0,0 +1,87 @@ +/* + * 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
b3efdf3c2b5b55624164d184d237795be6e7b3b5.json
Add Throwable functional interfaces Add 'Throwable' variants of the `Consumer`, `Function`, `BiFunction` and `Supplier` interfaces that wrap checked exceptions or allow calls to be made that throw them. Closes gh-28417
spring-core/src/test/java/org/springframework/util/function/ThrowingSupplierTests.java
@@ -0,0 +1,88 @@ +/* + * 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
58c441f9610b14569907059d5d0ca64975fe7653.json
Support multiple SpringFactoriesLoader files Update `SpringFactoriesLoader` so that it can load files from arbitrary locations. An instance of the loader class itself is now returned from static factory methods that accept different locations. The recent `ArgumentResolver` and `FailureHandler` `loadFactories` variant...
spring-beans/src/main/java/org/springframework/beans/factory/generator/BeanDefinitionsContribution.java
@@ -62,8 +62,10 @@ public BeanDefinitionsContribution(DefaultListableBeanFactory beanFactory) { } private static List<BeanRegistrationContributionProvider> initializeProviders(DefaultListableBeanFactory beanFactory) { - List<BeanRegistrationContributionProvider> providers = new ArrayList<>(SpringFactoriesLoader....
true
Other
spring-projects
spring-framework
58c441f9610b14569907059d5d0ca64975fe7653.json
Support multiple SpringFactoriesLoader files Update `SpringFactoriesLoader` so that it can load files from arbitrary locations. An instance of the loader class itself is now returned from static factory methods that accept different locations. The recent `ArgumentResolver` and `FailureHandler` `loadFactories` variant...
spring-core/src/main/java/org/springframework/core/io/support/SpringFactoriesLoader.java
@@ -25,7 +25,7 @@ import java.util.Arrays; import java.util.Collections; import java.util.Enumeration; -import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Properties; @@ -89,25 +89,67 @@ * @author Phillip Webb * @since 3.2 */ -public fina...
true
Other
spring-projects
spring-framework
58c441f9610b14569907059d5d0ca64975fe7653.json
Support multiple SpringFactoriesLoader files Update `SpringFactoriesLoader` so that it can load files from arbitrary locations. An instance of the loader class itself is now returned from static factory methods that accept different locations. The recent `ArgumentResolver` and `FailureHandler` `loadFactories` variant...
spring-core/src/test/java/org/springframework/core/io/support/SpringFactoriesLoaderTests.java
@@ -74,48 +74,48 @@ void loadFactoryNames() { } @Test - void loadFactoriesWithNoRegisteredImplementations() { - List<Integer> factories = SpringFactoriesLoader.loadFactories(Integer.class, null); + void loadWhenNoRegisteredImplementationsReturnsEmptyList() { + List<Integer> factories = SpringFactoriesLoader.for...
true
Other
spring-projects
spring-framework
58c441f9610b14569907059d5d0ca64975fe7653.json
Support multiple SpringFactoriesLoader files Update `SpringFactoriesLoader` so that it can load files from arbitrary locations. An instance of the loader class itself is now returned from static factory methods that accept different locations. The recent `ArgumentResolver` and `FailureHandler` `loadFactories` variant...
spring-core/src/test/resources/META-INF/custom/custom-spring.factories
@@ -0,0 +1,2 @@ +org.springframework.core.io.support.DummyFactory =\ +org.springframework.core.io.support.MyDummyFactory1
true
Other
spring-projects
spring-framework
58c441f9610b14569907059d5d0ca64975fe7653.json
Support multiple SpringFactoriesLoader files Update `SpringFactoriesLoader` so that it can load files from arbitrary locations. An instance of the loader class itself is now returned from static factory methods that accept different locations. The recent `ArgumentResolver` and `FailureHandler` `loadFactories` variant...
spring-core/src/test/resources/META-INF/spring/org.springframework.core.io.support.SpringFactoriesLoaderTests/test.factories
@@ -0,0 +1,2 @@ +org.springframework.core.io.support.DummyFactory =\ +org.springframework.core.io.support.MyDummyFactory1
true
Other
spring-projects
spring-framework
7aedb9ee33764056f874e6f8a191af89ce5f8903.json
Build CI image using oci-build-task resource
ci/parameters.yml
@@ -8,4 +8,7 @@ milestone: "5.3.x" build-name: "spring-framework" pipeline-name: "spring-framework" concourse-url: "https://ci.spring.io" +registry-mirror-host: docker.repo.spring.io +registry-mirror-username: ((artifactory-username)) +registry-mirror-password: ((artifactory-password)) task-timeout: 1h00m
true
Other
spring-projects
spring-framework
7aedb9ee33764056f874e6f8a191af89ce5f8903.json
Build CI image using oci-build-task resource
ci/pipeline.yml
@@ -24,6 +24,10 @@ anchors: username: ((docker-hub-username)) password: ((docker-hub-password)) tag: ((milestone)) + registry-mirror-vars: &registry-mirror-vars + registry-mirror-host: ((registry-mirror-host)) + registry-mirror-username: ((registry-mirror-username)) + registry-mirror-password: ...
true
Other
spring-projects
spring-framework
7aedb9ee33764056f874e6f8a191af89ce5f8903.json
Build CI image using oci-build-task resource
ci/scripts/sync-to-maven-central.sh
@@ -1,8 +0,0 @@ -#!/bin/bash - -export BUILD_INFO_LOCATION=$(pwd)/artifactory-repo/build-info.json -version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' ) -java -jar /opt/concourse-release-scripts.jar syncToCentral "RELEASE" $BUILD_INFO_LOCATION || { exit 1; } - ...
true
Other
spring-projects
spring-framework
7aedb9ee33764056f874e6f8a191af89ce5f8903.json
Build CI image using oci-build-task resource
ci/tasks/build-ci-image.yml
@@ -0,0 +1,31 @@ +--- +platform: linux +image_resource: + type: registry-image + source: + repository: concourse/oci-build-task + tag: 0.9.1 + registry_mirror: + host: ((registry-mirror-host)) + username: ((registry-mirror-username)) + password: ((registry-mirror-password)) +inputs: + - name:...
true
Other
spring-projects
spring-framework
5b1719cd7762dd6756028433ac75326448ed01e0.json
Upgrade CI to concourse-release-scripts 0.3.4
ci/images/setup.sh
@@ -14,8 +14,6 @@ rm -rf /var/lib/apt/lists/* curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.4/concourse-java.sh > /opt/concourse-java.sh -curl --output /opt/concourse-release-scripts.jar https://repo.spring.io/release/io/spring/concourse/releasescripts/concourse-release-scripts/0.3.2...
true
Other
spring-projects
spring-framework
5b1719cd7762dd6756028433ac75326448ed01e0.json
Upgrade CI to concourse-release-scripts 0.3.4
ci/parameters.yml
@@ -1,5 +1,6 @@ github-repo: "https://github.com/spring-projects/spring-framework.git" github-repo-name: "spring-projects/spring-framework" +sonatype-staging-profile: "org.springframework" docker-hub-organization: "springci" artifactory-server: "https://repo.spring.io" branch: "5.3.x"
true
Other
spring-projects
spring-framework
5b1719cd7762dd6756028433ac75326448ed01e0.json
Upgrade CI to concourse-release-scripts 0.3.4
ci/pipeline.yml
@@ -12,7 +12,7 @@ anchors: SONATYPE_USERNAME: ((sonatype-username)) SONATYPE_PASSWORD: ((sonatype-password)) SONATYPE_URL: ((sonatype-url)) - SONATYPE_STAGING_PROFILE_ID: ((sonatype-staging-profile-id)) + SONATYPE_STAGING_PROFILE: ((sonatype-staging-profile)) artifactory-task-params: &artifactor...
true
Other
spring-projects
spring-framework
5b1719cd7762dd6756028433ac75326448ed01e0.json
Upgrade CI to concourse-release-scripts 0.3.4
ci/scripts/promote-version.sh
@@ -6,11 +6,11 @@ CONFIG_DIR=git-repo/ci/config version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' ) export BUILD_INFO_LOCATION=$(pwd)/artifactory-repo/build-info.json -java -jar /opt/concourse-release-scripts.jar \ +java -jar /concourse-release-scripts.jar...
true
Other
spring-projects
spring-framework
5b1719cd7762dd6756028433ac75326448ed01e0.json
Upgrade CI to concourse-release-scripts 0.3.4
ci/tasks/promote-version.yml
@@ -1,5 +1,10 @@ --- platform: linux +image_resource: + type: registry-image + source: + repository: springio/concourse-release-scripts + tag: '0.3.4' inputs: - name: git-repo - name: artifactory-repo @@ -13,6 +18,6 @@ params: SONATYPE_USER: SONATYPE_PASSWORD: SONATYPE_URL: - SONATYPE_STAGING_PRO...
true
Other
spring-projects
spring-framework
c056b8175344dc06ce1cbebf07d7f9d122053e7c.json
Upgrade JDK and Ubuntu versions in CI image
ci/images/ci-image/Dockerfile
@@ -1,4 +1,4 @@ -FROM ubuntu:focal-20220404 +FROM ubuntu:focal-20220415 ADD setup.sh /setup.sh ADD get-jdk-url.sh /get-jdk-url.sh
true
Other
spring-projects
spring-framework
c056b8175344dc06ce1cbebf07d7f9d122053e7c.json
Upgrade JDK and Ubuntu versions in CI image
ci/images/get-jdk-url.sh
@@ -3,16 +3,16 @@ set -e case "$1" in java8) - echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u322-b06/OpenJDK8U-jdk_x64_linux_hotspot_8u322b06.tar.gz" + echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u332-b09/OpenJDK8U-jdk_x64_linux_hotspot_8u332b09.tar.gz...
true
Other
spring-projects
spring-framework
2d2726b8f77d7139c2dfdd0e4c0bc1b7591282d7.json
Add RequestBody resolver and minor improvements Support for RequestBody arguments. List supported arguments on HttpExchange. Improve null handling. See gh-28386
spring-web/src/main/java/org/springframework/web/service/annotation/HttpExchange.java
@@ -24,6 +24,7 @@ import org.springframework.core.annotation.AliasFor; import org.springframework.web.bind.annotation.Mapping; +import org.springframework.web.service.invoker.UrlArgumentResolver; /** @@ -49,16 +50,52 @@ * <tr> * <th>Method Argument</th> * <th>Description</th> + * <th>Resolver</th> * </...
true
Other
spring-projects
spring-framework
2d2726b8f77d7139c2dfdd0e4c0bc1b7591282d7.json
Add RequestBody resolver and minor improvements Support for RequestBody arguments. List supported arguments on HttpExchange. Improve null handling. See gh-28386
spring-web/src/main/java/org/springframework/web/service/invoker/HttpMethodArgumentResolver.java
@@ -40,15 +40,19 @@ public class HttpMethodArgumentResolver implements HttpServiceArgumentResolver { public boolean resolve( @Nullable Object argument, MethodParameter parameter, HttpRequestValues.Builder requestValues) { - if (argument instanceof HttpMethod httpMethod) { + if (!parameter.getParameterType().e...
true
Other
spring-projects
spring-framework
2d2726b8f77d7139c2dfdd0e4c0bc1b7591282d7.json
Add RequestBody resolver and minor improvements Support for RequestBody arguments. List supported arguments on HttpExchange. Improve null handling. See gh-28386
spring-web/src/main/java/org/springframework/web/service/invoker/HttpRequestValues.java
@@ -343,7 +343,7 @@ public void setBodyValue(Object bodyValue) { * <p>This is mutually exclusive with, and resets any previously set * {@link #setBodyValue(Object) body value}. */ - public <T, P extends Publisher<T>> void setBody(Publisher<P> body, ParameterizedTypeReference<?> elementTye) { + public <T, ...
true
Other
spring-projects
spring-framework
2d2726b8f77d7139c2dfdd0e4c0bc1b7591282d7.json
Add RequestBody resolver and minor improvements Support for RequestBody arguments. List supported arguments on HttpExchange. Improve null handling. See gh-28386
spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceMethod.java
@@ -110,14 +110,22 @@ private void applyArguments(HttpRequestValues.Builder requestValues, Object[] ar Assert.isTrue(arguments.length == this.parameters.length, "Method argument mismatch"); for (int i = 0; i < arguments.length; i++) { Object value = arguments[i]; + boolean resolved = false; for (HttpSer...
true
Other
spring-projects
spring-framework
2d2726b8f77d7139c2dfdd0e4c0bc1b7591282d7.json
Add RequestBody resolver and minor improvements Support for RequestBody arguments. List supported arguments on HttpExchange. Improve null handling. See gh-28386
spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceProxyFactory.java
@@ -188,10 +188,11 @@ private ConversionService initConversionService() { private List<HttpServiceArgumentResolver> initArgumentResolvers(ConversionService conversionService) { List<HttpServiceArgumentResolver> resolvers = new ArrayList<>(this.customResolvers); resolvers.add(new RequestHeaderArgumentResolver...
true
Other
spring-projects
spring-framework
2d2726b8f77d7139c2dfdd0e4c0bc1b7591282d7.json
Add RequestBody resolver and minor improvements Support for RequestBody arguments. List supported arguments on HttpExchange. Improve null handling. See gh-28386
spring-web/src/main/java/org/springframework/web/service/invoker/RequestBodyArgumentResolver.java
@@ -0,0 +1,86 @@ +/* + * 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
2d2726b8f77d7139c2dfdd0e4c0bc1b7591282d7.json
Add RequestBody resolver and minor improvements Support for RequestBody arguments. List supported arguments on HttpExchange. Improve null handling. See gh-28386
spring-web/src/main/java/org/springframework/web/service/invoker/UrlArgumentResolver.java
@@ -19,29 +19,32 @@ import java.net.URI; import org.springframework.core.MethodParameter; -import org.springframework.http.HttpMethod; import org.springframework.lang.Nullable; /** - * {@link HttpServiceArgumentResolver} that resolves the target - * request's URL from an {@link HttpMethod} argument. + * {@lin...
true