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
5af3223e7621004992fa6410d2e6a82be238fd8b.json
Add Release pipeline for Milestone versions This commit finishes the first step for migrating our complete build and release pipeline to Concourse CI. We're creating here a new "Release" jobs group in our pipeline. We can now release Milestones from our pipeline with: * the "stage-milestone" job, which creates and t...
ci/pipeline.yml
@@ -317,8 +317,51 @@ jobs: username: concourse-ci - put: repo-status-jdk15-build params: { state: "success", commit: "git-repo" } +- name: stage-milestone + serial: true + plan: + - get: spring-framework-ci-image + - get: git-repo + trigger: false + - task: stage + image:...
true
Other
spring-projects
spring-framework
5af3223e7621004992fa6410d2e6a82be238fd8b.json
Add Release pipeline for Milestone versions This commit finishes the first step for migrating our complete build and release pipeline to Concourse CI. We're creating here a new "Release" jobs group in our pipeline. We can now release Milestones from our pipeline with: * the "stage-milestone" job, which creates and t...
ci/scripts/promote-version.sh
@@ -0,0 +1,13 @@ +#!/bin/bash + +source $(dirname $0)/common.sh + +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 promote $RELEASE_TYPE $BU...
true
Other
spring-projects
spring-framework
5af3223e7621004992fa6410d2e6a82be238fd8b.json
Add Release pipeline for Milestone versions This commit finishes the first step for migrating our complete build and release pipeline to Concourse CI. We're creating here a new "Release" jobs group in our pipeline. We can now release Milestones from our pipeline with: * the "stage-milestone" job, which creates and t...
ci/scripts/stage-version.sh
@@ -0,0 +1,50 @@ +#!/bin/bash +set -e + +source $(dirname $0)/common.sh +repository=$(pwd)/distribution-repository + +pushd git-repo > /dev/null +git fetch --tags --all > /dev/null +popd > /dev/null + +git clone git-repo stage-git-repo > /dev/null + +pushd stage-git-repo > /dev/null + +snapshotVersion=$( awk -F '=' '$1...
true
Other
spring-projects
spring-framework
5af3223e7621004992fa6410d2e6a82be238fd8b.json
Add Release pipeline for Milestone versions This commit finishes the first step for migrating our complete build and release pipeline to Concourse CI. We're creating here a new "Release" jobs group in our pipeline. We can now release Milestones from our pipeline with: * the "stage-milestone" job, which creates and t...
ci/tasks/promote-version.yml
@@ -0,0 +1,18 @@ +--- +platform: linux +inputs: +- name: git-repo +- name: artifactory-repo +outputs: +- name: version +params: + RELEASE_TYPE: + ARTIFACTORY_SERVER: + ARTIFACTORY_USERNAME: + ARTIFACTORY_PASSWORD: + BINTRAY_SUBJECT: + BINTRAY_REPO: + BINTRAY_USERNAME: + BINTRAY_API_KEY: +run: + path: git-repo/...
true
Other
spring-projects
spring-framework
5af3223e7621004992fa6410d2e6a82be238fd8b.json
Add Release pipeline for Milestone versions This commit finishes the first step for migrating our complete build and release pipeline to Concourse CI. We're creating here a new "Release" jobs group in our pipeline. We can now release Milestones from our pipeline with: * the "stage-milestone" job, which creates and t...
ci/tasks/stage-version.yml
@@ -0,0 +1,17 @@ +--- +platform: linux +inputs: +- name: git-repo +outputs: +- name: stage-git-repo +- name: distribution-repository +params: + RELEASE_TYPE: + CI: true + GRADLE_ENTERPRISE_CACHE_USERNAME: + GRADLE_ENTERPRISE_CACHE_PASSWORD: + GRADLE_ENTERPRISE_URL: https://ge.spring.io +caches: +- path: gradle +ru...
true
Other
spring-projects
spring-framework
2aa8aef216934e65a78610707dcfe632a94b0ba5.json
Extend transaction attributes with labels TransactionAttribute now exposes a labels attribute that associates a descriptive array of labels with a transaction. Labels may be of a pure descriptive nature or may get evaluated by transaction managers to associate technology-specific behavior with the actual transaction.
spring-tx/src/main/java/org/springframework/transaction/annotation/SpringTransactionAnnotationParser.java
@@ -19,6 +19,7 @@ import java.io.Serializable; import java.lang.reflect.AnnotatedElement; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.springframework.core.annotation.AnnotatedElementUtils; @@ -34,6 +35,7 @@ * Strategy implementation for parsing Spring's {@link Transa...
true
Other
spring-projects
spring-framework
2aa8aef216934e65a78610707dcfe632a94b0ba5.json
Extend transaction attributes with labels TransactionAttribute now exposes a labels attribute that associates a descriptive array of labels with a transaction. Labels may be of a pure descriptive nature or may get evaluated by transaction managers to associate technology-specific behavior with the actual transaction.
spring-tx/src/main/java/org/springframework/transaction/annotation/Transactional.java
@@ -51,6 +51,7 @@ * @author Colin Sampaleanu * @author Juergen Hoeller * @author Sam Brannen + * @author Mark Paluch * @since 1.2 * @see org.springframework.transaction.interceptor.TransactionAttribute * @see org.springframework.transaction.interceptor.DefaultTransactionAttribute @@ -187,4 +188,17 @@ */ ...
true
Other
spring-projects
spring-framework
2aa8aef216934e65a78610707dcfe632a94b0ba5.json
Extend transaction attributes with labels TransactionAttribute now exposes a labels attribute that associates a descriptive array of labels with a transaction. Labels may be of a pure descriptive nature or may get evaluated by transaction managers to associate technology-specific behavior with the actual transaction.
spring-tx/src/main/java/org/springframework/transaction/interceptor/DefaultTransactionAttribute.java
@@ -16,6 +16,9 @@ package org.springframework.transaction.interceptor; +import java.util.Collection; +import java.util.Collections; + import org.springframework.lang.Nullable; import org.springframework.transaction.support.DefaultTransactionDefinition; import org.springframework.util.StringUtils; @@ -26,6 +29,7...
true
Other
spring-projects
spring-framework
2aa8aef216934e65a78610707dcfe632a94b0ba5.json
Extend transaction attributes with labels TransactionAttribute now exposes a labels attribute that associates a descriptive array of labels with a transaction. Labels may be of a pure descriptive nature or may get evaluated by transaction managers to associate technology-specific behavior with the actual transaction.
spring-tx/src/main/java/org/springframework/transaction/interceptor/DelegatingTransactionAttribute.java
@@ -17,6 +17,7 @@ package org.springframework.transaction.interceptor; import java.io.Serializable; +import java.util.Collection; import org.springframework.lang.Nullable; import org.springframework.transaction.support.DelegatingTransactionDefinition; @@ -28,6 +29,7 @@ * to the target instance. * * @autho...
true
Other
spring-projects
spring-framework
2aa8aef216934e65a78610707dcfe632a94b0ba5.json
Extend transaction attributes with labels TransactionAttribute now exposes a labels attribute that associates a descriptive array of labels with a transaction. Labels may be of a pure descriptive nature or may get evaluated by transaction managers to associate technology-specific behavior with the actual transaction.
spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAttribute.java
@@ -16,6 +16,8 @@ package org.springframework.transaction.interceptor; +import java.util.Collection; + import org.springframework.lang.Nullable; import org.springframework.transaction.TransactionDefinition; @@ -26,6 +28,7 @@ * * @author Rod Johnson * @author Juergen Hoeller + * @author Mark Paluch * @s...
true
Other
spring-projects
spring-framework
2aa8aef216934e65a78610707dcfe632a94b0ba5.json
Extend transaction attributes with labels TransactionAttribute now exposes a labels attribute that associates a descriptive array of labels with a transaction. Labels may be of a pure descriptive nature or may get evaluated by transaction managers to associate technology-specific behavior with the actual transaction.
spring-tx/src/test/java/org/springframework/transaction/annotation/AnnotationTransactionAttributeSourceTests.java
@@ -45,6 +45,7 @@ * @author Colin Sampaleanu * @author Juergen Hoeller * @author Sam Brannen + * @author Mark Paluch */ public class AnnotationTransactionAttributeSourceTests { @@ -183,6 +184,21 @@ public void rollbackRulesAreApplied() throws Exception { assertThat(actual.rollbackOn(new IOException())).is...
true
Other
spring-projects
spring-framework
2aa8aef216934e65a78610707dcfe632a94b0ba5.json
Extend transaction attributes with labels TransactionAttribute now exposes a labels attribute that associates a descriptive array of labels with a transaction. Labels may be of a pure descriptive nature or may get evaluated by transaction managers to associate technology-specific behavior with the actual transaction.
src/docs/asciidoc/data-access.adoc
@@ -1423,6 +1423,11 @@ properties of the `@Transactional` annotation: | `noRollbackForClassName` | Array of `String` class names, which must be derived from `Throwable.` | Optional array of names of exception classes that must not cause rollback. + +| `label` +| Array of `String` labels to add an expressive descript...
true
Other
spring-projects
spring-framework
53e018362f92e1dfd0bded12db006fe374fd5d02.json
Update samples to latest RSocket API A follow-up fix on the upgrade to 1.0 RC7 in gh-24934,
src/docs/asciidoc/rsocket.adoc
@@ -178,7 +178,7 @@ symmetrically, to make requests from clients and to make requests from servers. To obtain an `RSocketRequester` on the client side requires connecting to a server along with preparing and sending the initial RSocket `SETUP` frame. `RSocketRequester` provides a -builder for that. Internally uses ...
false
Other
spring-projects
spring-framework
3543e47841355680f00ba2c7dab525d7d9573f4b.json
Add ByteBufEncoder and ByteBufDecoder See gh-24866
spring-core/src/main/java/org/springframework/core/codec/ByteBufDecoder.java
@@ -0,0 +1,69 @@ +/* + * Copyright 2002-2020 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
3543e47841355680f00ba2c7dab525d7d9573f4b.json
Add ByteBufEncoder and ByteBufDecoder See gh-24866
spring-core/src/main/java/org/springframework/core/codec/ByteBufEncoder.java
@@ -0,0 +1,78 @@ +/* + * Copyright 2002-2020 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
3543e47841355680f00ba2c7dab525d7d9573f4b.json
Add ByteBufEncoder and ByteBufDecoder See gh-24866
spring-core/src/test/java/org/springframework/core/codec/ByteBufDecoderTests.java
@@ -0,0 +1,92 @@ +/* + * Copyright 2002-2020 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
3543e47841355680f00ba2c7dab525d7d9573f4b.json
Add ByteBufEncoder and ByteBufDecoder See gh-24866
spring-core/src/test/java/org/springframework/core/codec/ByteBufEncoderTests.java
@@ -0,0 +1,71 @@ +/* + * Copyright 2002-2020 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
6659e96104a02c7a8cc3b4287928b9081ab33a5c.json
Fix failing test See gh-24986
spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/session/SockJsSessionTests.java
@@ -26,7 +26,6 @@ import org.springframework.web.socket.CloseStatus; import org.springframework.web.socket.TextMessage; import org.springframework.web.socket.handler.ExceptionWebSocketHandlerDecorator; -import org.springframework.web.socket.sockjs.SockJsMessageDeliveryException; import org.springframework.web.socke...
false
Other
spring-projects
spring-framework
c35b3e5c822d9ffc57893393603866468ce24c80.json
Fix race condition in WriteResultPublisher Closes gh-24989
spring-web/src/main/java/org/springframework/http/server/reactive/WriteResultPublisher.java
@@ -175,6 +175,9 @@ void subscribe(WriteResultPublisher publisher, Subscriber<? super Void> subscrib @Override void publishComplete(WriteResultPublisher publisher) { publisher.completedBeforeSubscribed = true; + if(State.SUBSCRIBED.equals(publisher.state.get())) { + publisher.state.get().publishComp...
false
Other
spring-projects
spring-framework
06679a5583e6e5bbd8ec10a12f665cdfc561cc19.json
Fix tests in DispatcherServletTests See gh-28424
spring-webmvc/src/test/java/org/springframework/web/servlet/DispatcherServletTests.java
@@ -30,6 +30,7 @@ import javax.servlet.http.HttpServletRequestWrapper; import javax.servlet.http.HttpServletResponse; +import org.assertj.core.api.InstanceOfAssertFactories; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -519,7 +520,10 @@ public void detectAllHandlerAdapters() th...
false
Other
spring-projects
spring-framework
dc2947c52df18d5e99cad03383f7d6ba13d031fd.json
Ignore invalid connect frame Closes gh-28443
spring-messaging/src/main/java/org/springframework/messaging/simp/broker/SimpleBrokerMessageHandler.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 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. @@ -306,6 +306,12 @@ protected void handleMessa...
true
Other
spring-projects
spring-framework
dc2947c52df18d5e99cad03383f7d6ba13d031fd.json
Ignore invalid connect frame Closes gh-28443
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.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. @@ -552,6 +552,12 @@ else if (accessor instance...
true
Other
spring-projects
spring-framework
dc2947c52df18d5e99cad03383f7d6ba13d031fd.json
Ignore invalid connect frame Closes gh-28443
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerTests.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. @@ -260,6 +260,30 @@ void systemSubscription() ...
true
Other
spring-projects
spring-framework
2961426d8ad256983ffe1445acd4cbfaab4fd5db.json
Fix checkstyle issues and test failures See gh-27955 See gh-28442
spring-core/spring-core.gradle
@@ -111,7 +111,7 @@ jar { test { // Make sure the classes dir is used on the test classpath (required by ResourceTests). // When test fixtures are involved, the JAR is used by default. - classpath = sourceSets.main.output.classesDirs + classpath - files(jar.archiveFile) + classpath = sourceSets.main.output.classes...
true
Other
spring-projects
spring-framework
2961426d8ad256983ffe1445acd4cbfaab4fd5db.json
Fix checkstyle issues and test failures See gh-27955 See gh-28442
spring-core/src/main/java/org/springframework/core/io/support/SpringFactoriesLoaderRuntimeHintsRegistrar.java
@@ -95,4 +95,4 @@ private Class<?> resolveClassName(ClassLoader classLoader, String factoryClassNa } } -} \ No newline at end of file +}
true
Other
spring-projects
spring-framework
2961426d8ad256983ffe1445acd4cbfaab4fd5db.json
Fix checkstyle issues and test failures See gh-27955 See gh-28442
spring-core/src/test/java/org/springframework/core/annotation/CoreAnnotationsRuntimeHintsRegistrarTests.java
@@ -48,14 +48,14 @@ void setup() { @Test void aliasForHasHints() { assertThat(this.hints.reflection().getTypeHint(TypeReference.of(AliasFor.class))) - .satisfies((hint) -> assertThat(hint.getMemberCategories()) + .satisfies(hint -> assertThat(hint.getMemberCategories()) .containsExactly(MemberCatego...
true
Other
spring-projects
spring-framework
e7e60f7cb9c73339294e3f078fe722ca28d49b44.json
Add native hints for core annotations Add `CoreAnnotationsRuntimeHintsRegistrar` to provide native hints for `@Order` and `@AliasFor`. Closes gh-28442
spring-core/src/main/java/org/springframework/core/annotation/CoreAnnotationsRuntimeHintsRegistrar.java
@@ -0,0 +1,43 @@ +/* + * 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
e7e60f7cb9c73339294e3f078fe722ca28d49b44.json
Add native hints for core annotations Add `CoreAnnotationsRuntimeHintsRegistrar` to provide native hints for `@Order` and `@AliasFor`. Closes gh-28442
spring-core/src/main/resources/META-INF/spring/aot.factories
@@ -0,0 +1,2 @@ +org.springframework.aot.hint.RuntimeHintsRegistrar=\ +org.springframework.core.annotation.CoreAnnotationsRuntimeHintsRegistrar
true
Other
spring-projects
spring-framework
e7e60f7cb9c73339294e3f078fe722ca28d49b44.json
Add native hints for core annotations Add `CoreAnnotationsRuntimeHintsRegistrar` to provide native hints for `@Order` and `@AliasFor`. Closes gh-28442
spring-core/src/test/java/org/springframework/core/annotation/CoreAnnotationsRuntimeHintsRegistrarTests.java
@@ -0,0 +1,62 @@ +/* + * 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
1c10cdd1e87f133c082771587a730bbf2255a920.json
Update copyright dates See gh-28433
spring-web/src/main/java/org/springframework/http/server/reactive/UndertowHttpHandlerAdapter.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.
true
Other
spring-projects
spring-framework
1c10cdd1e87f133c082771587a730bbf2255a920.json
Update copyright dates See gh-28433
spring-webflux/src/main/java/org/springframework/web/reactive/resource/VersionResourceResolver.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.
true
Other
spring-projects
spring-framework
1c10cdd1e87f133c082771587a730bbf2255a920.json
Update copyright dates See gh-28433
spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/upgrade/UndertowRequestUpgradeStrategy.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.
true
Other
spring-projects
spring-framework
1c10cdd1e87f133c082771587a730bbf2255a920.json
Update copyright dates See gh-28433
spring-webmvc/src/main/java/org/springframework/web/servlet/resource/VersionResourceResolver.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.
true
Other
spring-projects
spring-framework
1c10cdd1e87f133c082771587a730bbf2255a920.json
Update copyright dates See gh-28433
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/handler/XhrStreamingTransportHandler.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 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.
true
Other
spring-projects
spring-framework
91441ba653de8dcced776bdb979a98bd0e223365.json
Update copyright date
spring-test/src/main/java/org/springframework/test/context/ContextConfiguration.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
false
Other
spring-projects
spring-framework
2713f28c285c969118597f5c3337f0657e3eba6c.json
Fix typo in declarative HTTP interfaces docs Closes gh-28431
src/docs/asciidoc/integration.adoc
@@ -366,7 +366,7 @@ If necessary the `Content-Type` may also be set explicitly. [[rest-http-interface]] === HTTP Interface -The Spring Frameworks lets you define an HTTP service as a Java interface with annotated +The Spring Framework lets you define an HTTP service as a Java interface with annotated methods for H...
false
Other
spring-projects
spring-framework
d2b674391a01c4b4cc8424466e4cea5ef8167f35.json
Add documentation for interface proxy client Closes gh-28386
src/docs/asciidoc/index.adoc
@@ -14,11 +14,12 @@ JDBC, R2DBC, O/R Mapping, XML Marshalling. STOMP Messaging. <<web-reactive.adoc#spring-webflux, Web Reactive>> :: Spring WebFlux, WebClient, WebSocket, RSocket. -<<integration.adoc#spring-integration, Integration>> :: JMS, JCA, JMX, Email, Tasks, Scheduling, Caching. +<<integration.adoc#spring-in...
true
Other
spring-projects
spring-framework
d2b674391a01c4b4cc8424466e4cea5ef8167f35.json
Add documentation for interface proxy client Closes gh-28386
src/docs/asciidoc/integration.adoc
@@ -12,19 +12,34 @@ a number of technologies. [[rest-client-access]] -== REST Endpoints +== REST Clients -The Spring Framework provides two choices for making calls to REST endpoints: +The Spring Framework provides the following choices for making calls to REST endpoints: + +* <<rest-webclient>> - non-blocking, ...
true
Other
spring-projects
spring-framework
d2b674391a01c4b4cc8424466e4cea5ef8167f35.json
Add documentation for interface proxy client Closes gh-28386
src/docs/asciidoc/web-reactive.adoc
@@ -17,6 +17,18 @@ include::web/webflux.adoc[leveloffset=+1] include::web/webflux-webclient.adoc[leveloffset=+1] + +[[webflux-http-interface-client]] +== HTTP Interface Client + +The Spring Frameworks lets you define an HTTP service as a Java interface with HTTP +exchange methods. You can then generate a proxy tha...
true
Other
spring-projects
spring-framework
d2b674391a01c4b4cc8424466e4cea5ef8167f35.json
Add documentation for interface proxy client Closes gh-28386
src/docs/asciidoc/web/webmvc-client.adoc
@@ -13,8 +13,8 @@ This section describes options for client-side access to REST endpoints. Spring REST client and exposes a simple, template-method API over underlying HTTP client libraries. -NOTE: As of 5.0 the `RestTemplate` is in maintenance mode, with only minor requests for -changes and bugs to be accepted goi...
true
Other
spring-projects
spring-framework
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-web/src/main/java/org/springframework/web/bind/support/WebExchangeBindException.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. @@ -31,11 +31,10 @@ import org.springframework...
true
Other
spring-projects
spring-framework
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-web/src/main/java/org/springframework/web/server/MissingRequestValueException.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
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-web/src/main/java/org/springframework/web/server/UnsatisfiedRequestParameterException.java
@@ -0,0 +1,78 @@ +/* + * 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
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-web/src/test/java/org/springframework/web/ErrorResponseExceptionTests.java
@@ -29,6 +29,7 @@ import org.springframework.http.MediaType; import org.springframework.http.ProblemDetail; import org.springframework.lang.Nullable; +import org.springframework.util.LinkedMultiValueMap; import org.springframework.validation.BindException; import org.springframework.validation.BindingResult; impo...
true
Other
spring-projects
spring-framework
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMapping.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. @@ -46,6 +46,7 @@ import org.springframework.w...
true
Other
spring-projects
spring-framework
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageReaderArgumentResolver.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. @@ -225,8 +225,14 @@ private Throwable handleRe...
true
Other
spring-projects
spring-framework
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractNamedValueArgumentResolver.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. @@ -34,6 +34,7 @@ import org.springframework.w...
true
Other
spring-projects
spring-framework
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/CookieValueMethodArgumentResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,8 +23,8 @@ import org.springframework.l...
true
Other
spring-projects
spring-framework
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/MatrixVariableMethodArgumentResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,6 +31,7 @@ import org.springframework.w...
true
Other
spring-projects
spring-framework
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestAttributeMethodArgumentResolver.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. @@ -26,8 +26,8 @@ import org.springframework.u...
true
Other
spring-projects
spring-framework
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestHeaderMethodArgumentResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,8 +26,8 @@ import org.springframework.l...
true
Other
spring-projects
spring-framework
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestParamMethodArgumentResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 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. @@ -28,8 +28,8 @@ import org.springframework.u...
true
Other
spring-projects
spring-framework
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestPartMethodArgumentResolver.java
@@ -37,8 +37,8 @@ import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.RequestPart; import org.springframework.web.reactive.BindingContext; +import org.springframework.web.server.MissingRequestValueException; import org.springframework.web.server.ServerWebExchange; -import org...
true
Other
spring-projects
spring-framework
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/SessionAttributeMethodArgumentResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 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. @@ -24,8 +24,8 @@ import org.springframework.u...
true
Other
spring-projects
spring-framework
5d0f49c2c8c5436c667d5ba4753febd531fe5c7d.json
Add WebInputException subclasses Closes gh-28142
spring-webflux/src/test/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMappingTests.java
@@ -53,7 +53,7 @@ import org.springframework.web.server.MethodNotAllowedException; import org.springframework.web.server.NotAcceptableStatusException; import org.springframework.web.server.ServerWebExchange; -import org.springframework.web.server.ServerWebInputException; +import org.springframework.web.server.Unsati...
true
Other
spring-projects
spring-framework
9b1c8a3a5cd72a1a5301c6966d124783f7e17ffb.json
Fix broken ToStringVisitorTests Tests were broken due to the switch to Set.of(...) in 2b65f274dc77645d4af6ca76a62008b6cede2675.
spring-webflux/src/test/java/org/springframework/web/reactive/function/server/ToStringVisitorTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 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. @@ -71,7 +71,10 @@ public void predicates() { ...
true
Other
spring-projects
spring-framework
9b1c8a3a5cd72a1a5301c6966d124783f7e17ffb.json
Fix broken ToStringVisitorTests Tests were broken due to the switch to Set.of(...) in 2b65f274dc77645d4af6ca76a62008b6cede2675.
spring-webmvc/src/test/java/org/springframework/web/servlet/function/ToStringVisitorTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 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. @@ -70,7 +70,10 @@ public void predicates() { ...
true
Other
spring-projects
spring-framework
2b65f274dc77645d4af6ca76a62008b6cede2675.json
Use Set.of instead of HashSet with Arrays.asList
spring-context-indexer/src/main/java/org/springframework/context/index/processor/PropertiesMarshaller.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 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. @@ -19,8 +19,6 @@ import java.io.IOException; ...
true
Other
spring-projects
spring-framework
2b65f274dc77645d4af6ca76a62008b6cede2675.json
Use Set.of instead of HashSet with Arrays.asList
spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassPostProcessor.java
@@ -17,7 +17,6 @@ package org.springframework.context.annotation; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashMap; @@ -371,7 +370,7 @@ else if (ConfigurationClassUtils.checkConfigurationClassCandidate(beanDef, this. cand...
true
Other
spring-projects
spring-framework
2b65f274dc77645d4af6ca76a62008b6cede2675.json
Use Set.of instead of HashSet with Arrays.asList
spring-context/src/main/java/org/springframework/jmx/export/assembler/MethodExclusionMBeanInfoAssembler.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 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. @@ -17,10 +17,8 @@ package org.springframework...
true
Other
spring-projects
spring-framework
2b65f274dc77645d4af6ca76a62008b6cede2675.json
Use Set.of instead of HashSet with Arrays.asList
spring-context/src/main/java/org/springframework/jmx/export/assembler/MethodNameBasedMBeanInfoAssembler.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,10 +17,8 @@ package org.springframework...
true
Other
spring-projects
spring-framework
2b65f274dc77645d4af6ca76a62008b6cede2675.json
Use Set.of instead of HashSet with Arrays.asList
spring-core/src/main/java/org/springframework/util/ClassUtils.java
@@ -157,7 +157,7 @@ public abstract class ClassUtils { Class<?>[] javaLanguageInterfaceArray = {Serializable.class, Externalizable.class, Closeable.class, AutoCloseable.class, Cloneable.class, Comparable.class}; registerCommonClasses(javaLanguageInterfaceArray); - javaLanguageInterfaces = new HashSet<>(Arra...
true
Other
spring-projects
spring-framework
2b65f274dc77645d4af6ca76a62008b6cede2675.json
Use Set.of instead of HashSet with Arrays.asList
spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.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,7 +22,6 @@ import java.util.Arrays; im...
true
Other
spring-projects
spring-framework
2b65f274dc77645d4af6ca76a62008b6cede2675.json
Use Set.of instead of HashSet with Arrays.asList
spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicates.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. @@ -24,7 +24,6 @@ import java.util.Arrays; im...
true
Other
spring-projects
spring-framework
2b65f274dc77645d4af6ca76a62008b6cede2675.json
Use Set.of instead of HashSet with Arrays.asList
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodProcessor.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. @@ -19,7 +19,6 @@ import java.io.IOException; ...
true
Other
spring-projects
spring-framework
2b65f274dc77645d4af6ca76a62008b6cede2675.json
Use Set.of instead of HashSet with Arrays.asList
spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.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. @@ -18,9 +18,7 @@ import java.io.ByteArrayOu...
true
Other
spring-projects
spring-framework
2b65f274dc77645d4af6ca76a62008b6cede2675.json
Use Set.of instead of HashSet with Arrays.asList
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java
@@ -20,7 +20,6 @@ import java.util.Arrays; import java.util.Collections; import java.util.Date; -import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; @@ -81,7 +80,7 @@ private enum State {NEW, OPEN, CLOSED} * @see #indicatesDisconnectedClient(Throwable) */ private s...
true
Other
spring-projects
spring-framework
12357fdf44f31c1f4aced29eeeb2784a8d6ffd62.json
Add byte[] to supported JMS message header types Closes gh-28421
spring-jms/src/main/java/org/springframework/jms/support/SimpleJmsHeaderMapper.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. @@ -16,10 +16,8 @@ package org.springframewo...
false
Other
spring-projects
spring-framework
702207d9eedf2d80ae426f3c9e096d292ac441fa.json
Add updated ApplicationContextAotGenerator Add `ApplicationContextAotGenerator` implementation that makes use of the new AOT generation APIs. See gh-28414
spring-context/src/main/java/org/springframework/context/aot/ApplicationContextAotGenerator.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
702207d9eedf2d80ae426f3c9e096d292ac441fa.json
Add updated ApplicationContextAotGenerator Add `ApplicationContextAotGenerator` implementation that makes use of the new AOT generation APIs. See gh-28414
spring-context/src/main/java/org/springframework/context/aot/ApplicationContextInitializationCodeGenerator.java
@@ -0,0 +1,103 @@ +/* + * 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
702207d9eedf2d80ae426f3c9e096d292ac441fa.json
Add updated ApplicationContextAotGenerator Add `ApplicationContextAotGenerator` implementation that makes use of the new AOT generation APIs. See gh-28414
spring-context/src/main/java/org/springframework/context/aot/BeanFactoryInitializationContributions.java
@@ -0,0 +1,82 @@ +/* + * 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
702207d9eedf2d80ae426f3c9e096d292ac441fa.json
Add updated ApplicationContextAotGenerator Add `ApplicationContextAotGenerator` implementation that makes use of the new AOT generation APIs. See gh-28414
spring-context/src/main/java/org/springframework/context/aot/RuntimeHintsBeanFactoryInitializationAotProcessor.java
@@ -0,0 +1,122 @@ +/* + * 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
702207d9eedf2d80ae426f3c9e096d292ac441fa.json
Add updated ApplicationContextAotGenerator Add `ApplicationContextAotGenerator` implementation that makes use of the new AOT generation APIs. See gh-28414
spring-context/src/main/java/org/springframework/context/aot/package-info.java
@@ -0,0 +1,9 @@ +/** + * AOT support for application contexts. + */ +@NonNullApi +@NonNullFields +package org.springframework.context.aot; + +import org.springframework.lang.NonNullApi; +import org.springframework.lang.NonNullFields;
true
Other
spring-projects
spring-framework
702207d9eedf2d80ae426f3c9e096d292ac441fa.json
Add updated ApplicationContextAotGenerator Add `ApplicationContextAotGenerator` implementation that makes use of the new AOT generation APIs. See gh-28414
spring-context/src/test/java/org/springframework/context/aot/ApplicationContextAotGeneratorTests.java
@@ -0,0 +1,242 @@ +/* + * 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
702207d9eedf2d80ae426f3c9e096d292ac441fa.json
Add updated ApplicationContextAotGenerator Add `ApplicationContextAotGenerator` implementation that makes use of the new AOT generation APIs. See gh-28414
spring-context/src/test/java/org/springframework/context/aot/RuntimeHintsBeanFactoryInitializationAotProcessorTests.java
@@ -0,0 +1,197 @@ +/* + * 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
702207d9eedf2d80ae426f3c9e096d292ac441fa.json
Add updated ApplicationContextAotGenerator Add `ApplicationContextAotGenerator` implementation that makes use of the new AOT generation APIs. See gh-28414
spring-context/src/test/resources/org/springframework/context/aot/test-runtime-hints-aot.factories
@@ -0,0 +1,2 @@ +org.springframework.aot.hint.RuntimeHintsRegistrar= \ +org.springframework.context.aot.RuntimeHintsBeanFactoryInitializationAotProcessorTests.SampleRuntimeHintsRegistrar \ No newline at end of file
true
Other
spring-projects
spring-framework
c5c68a46622ec2688aed20cc8efde8c23aceb729.json
Add MethodReference support Add a `MethodReference` class which can be used to refer to a static or instance method. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/MethodReference.java
@@ -0,0 +1,237 @@ +/* + * 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
c5c68a46622ec2688aed20cc8efde8c23aceb729.json
Add MethodReference support Add a `MethodReference` class which can be used to refer to a static or instance method. See gh-28414
spring-core/src/test/java/org/springframework/aot/generate/MethodReferenceTests.java
@@ -0,0 +1,226 @@ +/* + * 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
1816c77c51132b6fff6bd2f275c993bc7e1250c6.json
Add generation context interface Add `GenerationContext` interface and `DefaultGenerationContext` implementation as the central entry point for AOT processing. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/DefaultGenerationContext.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
1816c77c51132b6fff6bd2f275c993bc7e1250c6.json
Add generation context interface Add `GenerationContext` interface and `DefaultGenerationContext` implementation as the central entry point for AOT processing. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/GenerationContext.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
1816c77c51132b6fff6bd2f275c993bc7e1250c6.json
Add generation context interface Add `GenerationContext` interface and `DefaultGenerationContext` implementation as the central entry point for AOT processing. See gh-28414
spring-core/src/test/java/org/springframework/aot/generate/DefaultGenerationContextTests.java
@@ -0,0 +1,105 @@ +/* + * 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
d5374550e5da13f8855321b337295b6a38ef38c8.json
Add support for generating classes Add `ClassGenerator` and `GeneratedClass` which can be used to generated classes that will ultimately be written to a `JavaFile`. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/ClassGenerator.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
d5374550e5da13f8855321b337295b6a38ef38c8.json
Add support for generating classes Add `ClassGenerator` and `GeneratedClass` which can be used to generated classes that will ultimately be written to a `JavaFile`. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/GeneratedClass.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
d5374550e5da13f8855321b337295b6a38ef38c8.json
Add support for generating classes Add `ClassGenerator` and `GeneratedClass` which can be used to generated classes that will ultimately be written to a `JavaFile`. See gh-28414
spring-core/src/main/java/org/springframework/aot/generate/GeneratedClasses.java
@@ -0,0 +1,94 @@ +/* + * 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
d5374550e5da13f8855321b337295b6a38ef38c8.json
Add support for generating classes Add `ClassGenerator` and `GeneratedClass` which can be used to generated classes that will ultimately be written to a `JavaFile`. See gh-28414
spring-core/src/test/java/org/springframework/aot/generate/GeneratedClassTests.java
@@ -0,0 +1,92 @@ +/* + * 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
d5374550e5da13f8855321b337295b6a38ef38c8.json
Add support for generating classes Add `ClassGenerator` and `GeneratedClass` which can be used to generated classes that will ultimately be written to a `JavaFile`. See gh-28414
spring-core/src/test/java/org/springframework/aot/generate/GeneratedClassesTests.java
@@ -0,0 +1,130 @@ +/* + * 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
7cf1ccc41540752a16e370b5dd353b94108ebf22.json
Use MonoProcessor instead of FluxIdentityProcessor We just need to signal completion when close() is called. MonoProcessor should suffice and we can avoid a hard dependency on Reactor 3.4. See gh-25085
spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/ReactorNettyTcpClient.java
@@ -32,10 +32,8 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.reactivestreams.Publisher; -import reactor.core.publisher.FluxIdentityProcessor; import reactor.core.publisher.Mono; import reactor.core.publisher.MonoProcessor; -import reactor.core.publisher.Process...
true
Other
spring-projects
spring-framework
7cf1ccc41540752a16e370b5dd353b94108ebf22.json
Use MonoProcessor instead of FluxIdentityProcessor We just need to signal completion when close() is called. MonoProcessor should suffice and we can avoid a hard dependency on Reactor 3.4. See gh-25085
spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/ReactorNettyTcpConnection.java
@@ -17,8 +17,8 @@ package org.springframework.messaging.tcp.reactor; import io.netty.buffer.ByteBuf; -import reactor.core.publisher.FluxIdentityProcessor; import reactor.core.publisher.Mono; +import reactor.core.publisher.MonoProcessor; import reactor.netty.NettyInbound; import reactor.netty.NettyOutbound; @@ ...
true
Other
spring-projects
spring-framework
96bbec7ab2de85f26850127619623ef689e39400.json
Restore use of tcpConfiguration method The method wasn't available at first but has been added since to allow being compatible with both Reactor Netty 0.9 and 1.0. See gh-25085
spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpConnector.java
@@ -75,12 +75,13 @@ public ReactorClientHttpConnector(ReactorResourceFactory factory, Function<HttpC this.httpClient = defaultInitializer.andThen(mapper).apply(initHttpClient(factory)); } + @SuppressWarnings("deprecation") private static HttpClient initHttpClient(ReactorResourceFactory resourceFactory) { Co...
false
Other
spring-projects
spring-framework
883ad098f927760e6bd52af531d0938e0c6ab5dc.json
Add support for X-Forwarded-For and Forwarded for See gh-23260, gh-23582
spring-web/src/main/java/org/springframework/http/server/reactive/DefaultServerHttpRequestBuilder.java
@@ -57,6 +57,9 @@ class DefaultServerHttpRequestBuilder implements ServerHttpRequest.Builder { @Nullable private SslInfo sslInfo; + @Nullable + private InetSocketAddress remoteAddress; + private Flux<DataBuffer> body; private final ServerHttpRequest originalRequest; @@ -68,6 +71,7 @@ public DefaultServerHtt...
true
Other
spring-projects
spring-framework
883ad098f927760e6bd52af531d0938e0c6ab5dc.json
Add support for X-Forwarded-For and Forwarded for See gh-23260, gh-23582
spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpRequest.java
@@ -175,6 +175,12 @@ interface Builder { */ Builder sslInfo(SslInfo sslInfo); + /** + * Set the address of the remote client. + * @since 5.3 + */ + Builder remoteAddress(InetSocketAddress remoteAddress); + /** * Build a {@link ServerHttpRequest} decorator with the mutated properties. */
true
Other
spring-projects
spring-framework
883ad098f927760e6bd52af531d0938e0c6ab5dc.json
Add support for X-Forwarded-For and Forwarded for See gh-23260, gh-23582
spring-web/src/main/java/org/springframework/web/filter/ForwardedHeaderFilter.java
@@ -24,6 +24,7 @@ import java.util.Map; import java.util.Set; import java.util.function.Supplier; +import java.util.regex.Pattern; import javax.servlet.FilterChain; import javax.servlet.ServletException; @@ -32,6 +33,7 @@ import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletRespo...
true
Other
spring-projects
spring-framework
883ad098f927760e6bd52af531d0938e0c6ab5dc.json
Add support for X-Forwarded-For and Forwarded for See gh-23260, gh-23582
spring-web/src/main/java/org/springframework/web/server/adapter/ForwardedHeaderTransformer.java
@@ -16,18 +16,21 @@ package org.springframework.web.server.adapter; +import java.net.InetSocketAddress; import java.net.URI; import java.util.Collections; import java.util.Locale; import java.util.Set; import java.util.function.Function; +import java.util.regex.Pattern; import org.springframework.context.A...
true
Other
spring-projects
spring-framework
883ad098f927760e6bd52af531d0938e0c6ab5dc.json
Add support for X-Forwarded-For and Forwarded for See gh-23260, gh-23582
spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java
@@ -97,9 +97,13 @@ public class UriComponentsBuilder implements UriBuilder, Cloneable { "^" + HTTP_PATTERN + "(//(" + USERINFO_PATTERN + "@)?" + HOST_PATTERN + "(:" + PORT_PATTERN + ")?" + ")?" + PATH_PATTERN + "(\\?" + LAST_PATTERN + ")?"); - private static final Pattern FORWARDED_HOST_PATTERN = Pattern.co...
true
Other
spring-projects
spring-framework
883ad098f927760e6bd52af531d0938e0c6ab5dc.json
Add support for X-Forwarded-For and Forwarded for See gh-23260, gh-23582
spring-web/src/test/java/org/springframework/web/filter/ForwardedHeaderFilterTests.java
@@ -55,6 +55,8 @@ public class ForwardedHeaderFilterTests { private static final String X_FORWARDED_PREFIX = "x-forwarded-prefix"; private static final String X_FORWARDED_SSL = "x-forwarded-ssl"; + private static final String X_FORWARDED_FOR = "x-forwarded-for"; + private static final String FORWARDED = "forwarde...
true
Other
spring-projects
spring-framework
883ad098f927760e6bd52af531d0938e0c6ab5dc.json
Add support for X-Forwarded-For and Forwarded for See gh-23260, gh-23582
spring-web/src/test/java/org/springframework/web/server/adapter/ForwardedHeaderTransformerTests.java
@@ -16,7 +16,9 @@ package org.springframework.web.server.adapter; +import java.net.InetSocketAddress; import java.net.URI; +import java.net.URISyntaxException; import org.junit.jupiter.api.Test; @@ -35,10 +37,8 @@ public class ForwardedHeaderTransformerTests { private static final String BASE_URL = "http...
true
Other
spring-projects
spring-framework
ff9daa93775961ea3c6561c760d40f43103fdbba.json
Adjust WebFlux behavior for @RequestPart List<T> List<T> support was added relatively late, incorrectly decoding each part to T which means no way to decode a single part to List<T> and thatis the most common case (vs multipart parts with the same name). This behavior was further misaligned with Spring MVC as well as ...
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestPartMethodArgumentResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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,6 +16,7 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
ff9daa93775961ea3c6561c760d40f43103fdbba.json
Adjust WebFlux behavior for @RequestPart List<T> List<T> support was added relatively late, incorrectly decoding each part to T which means no way to decode a single part to List<T> and thatis the most common case (vs multipart parts with the same name). This behavior was further misaligned with Spring MVC as well as ...
spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestPartMethodArgumentResolverTests.java
@@ -17,6 +17,7 @@ package org.springframework.web.reactive.result.method.annotation; import java.time.Duration; +import java.util.Arrays; import java.util.Collections; import java.util.List; @@ -61,17 +62,17 @@ * @author Rossen Stoyanchev * @author Ilya Lukyanovich */ -public class RequestPartMethodArgume...
true
Other
spring-projects
spring-framework
0a208a49413285e25cdb5feef84effd940067100.json
Fix broken link to Stack Overflow tags
src/docs/asciidoc/overview.adoc
@@ -124,10 +124,11 @@ clean code structure with no circular dependencies between packages. [[overview-feedback]] == Feedback and Contributions -For how-to questions or diagnosing or debugging issues, we suggest using StackOverflow, -and we have a https://spring.io/questions[questions page] that lists the suggested...
false
Other
spring-projects
spring-framework
c6e2d1d405d34b9787bf8952e831866009fc22b2.json
Upgrade JDK 15 CI image to JDK 15 build 28
ci/images/get-jdk-url.sh
@@ -12,7 +12,7 @@ case "$1" in echo "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.1%2B7/OpenJDK14U-jdk_x64_linux_hotspot_14.0.1_7.tar.gz" ;; java15) - echo "https://download.java.net/java/early_access/jdk15/26/GPL/openjdk-15-ea+26_linux-x64_bin.tar.gz" + echo "https://downl...
false