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 | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-core/src/main/java/org/springframework/core/io/buffer/Netty5DataBuffer.java | @@ -0,0 +1,346 @@
+/*
+ * 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 | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-core/src/main/java/org/springframework/core/io/buffer/Netty5DataBufferFactory.java | @@ -0,0 +1,139 @@
+/*
+ * 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 | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-core/src/main/java/org/springframework/core/io/buffer/NettyDataBuffer.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.
@@ -16,24 +16,20 @@
package org.springframew... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-core/src/main/java/org/springframework/core/io/buffer/NettyDataBufferFactory.java | @@ -28,7 +28,7 @@
/**
* Implementation of the {@code DataBufferFactory} interface based on a
- * Netty {@link ByteBufAllocator}.
+ * Netty 4 {@link ByteBufAllocator}.
*
* @author Arjen Poutsma
* @author Juergen Hoeller
@@ -61,6 +61,7 @@ public ByteBufAllocator getByteBufAllocator() {
}
@Override
+ @Dep... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-core/src/main/java/org/springframework/core/io/buffer/PooledDataBuffer.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.
@@ -17,13 +17,13 @@
package org.springframewor... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-core/src/main/java/org/springframework/core/io/buffer/TouchableDataBuffer.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 | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-core/src/test/java/org/springframework/core/codec/Netty5BufferDecoderTests.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 | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-core/src/test/java/org/springframework/core/codec/Netty5BufferEncoderTests.java | @@ -0,0 +1,70 @@
+/*
+ * 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 | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-core/src/test/java/org/springframework/core/io/buffer/DataBufferTests.java | @@ -28,6 +28,7 @@
import static org.assertj.core.api.Assertions.assertThatException;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
+import static org.junit.jupiter.api.Assumptions.assumeFalse;
/**
* @aut... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-core/src/test/java/org/springframework/core/io/buffer/DataBufferUtilsTests.java | @@ -115,7 +115,7 @@ void readByteChannelError(DataBufferFactory bufferFactory) throws Exception {
DataBufferUtils.readByteChannel(() -> channel, super.bufferFactory, 3);
StepVerifier.create(result)
- .consumeNextWith(stringConsumer("foo"))
+ .consumeNextWith(stringConsumer(""))
.expectError(IOExcep... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-core/src/testFixtures/java/org/springframework/core/testfixture/io/buffer/AbstractDataBufferAllocatingTests.java | @@ -34,6 +34,7 @@
import io.netty.buffer.PooledByteBufAllocator;
import io.netty.buffer.PooledByteBufAllocatorMetric;
import io.netty.buffer.UnpooledByteBufAllocator;
+import io.netty5.buffer.api.BufferAllocator;
import org.junit.jupiter.api.extension.AfterEachCallback;
import org.junit.jupiter.api.extension.Regis... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-core/src/testFixtures/java/org/springframework/core/testfixture/io/buffer/LeakAwareDataBufferFactory.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.
@@ -107,6 +107,7 @@ public void checkForLeaks()... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-messaging/src/main/java/org/springframework/messaging/rsocket/PayloadUtils.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.
@@ -96,13 +96,12 @@ public static Payload creat... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-test/src/main/java/org/springframework/test/web/reactive/server/WiretapConnector.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 @@ final static class WiretapR... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/spring-web.gradle | @@ -23,6 +23,7 @@ dependencies {
optional("io.netty:netty-codec-http") // Until Netty4ClientHttpRequest is removed
optional("io.netty:netty-transport") // Until Netty4ClientHttpRequest is removed
optional("io.projectreactor.netty:reactor-netty-http")
+ optional("io.netty:netty5-buffer:5.0.0.Alpha4")
optional("... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/client/reactive/HttpComponentsClientHttpRequest.java | @@ -102,7 +102,7 @@ public <T> T getNativeRequest() {
@Override
public Mono<Void> writeWith(Publisher<? extends DataBuffer> body) {
return doCommit(() -> {
- this.byteBufferFlux = Flux.from(body).map(DataBuffer::asByteBuffer);
+ this.byteBufferFlux = Flux.from(body).map(DataBuffer::toByteBuffer);
return ... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/client/reactive/JdkClientHttpRequest.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.
@@ -122,8 +122,8 @@ public Mono<Void> writeWith... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpRequest.java | @@ -33,7 +33,6 @@
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.core.io.buffer.DataBufferUtils;
-import org.springframework.core.io.buffer.PooledDataBuffer;
import org.springframework.http.HttpHeaders;
import org.spring... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.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.
@@ -30,7 +30,6 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/FormHttpMessageReader.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.
@@ -129,7 +129,7 @@ public Mono<MultiValueMap<S... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/ServerSentEventHttpMessageWriter.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.
@@ -34,7 +34,6 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartHttpMessageWriter.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.
@@ -38,7 +38,6 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartParser.java | @@ -321,10 +321,10 @@ public void onNext(DataBuffer buf) {
if (logger.isTraceEnabled()) {
logger.trace("First boundary found @" + endIdx + " in " + buf);
}
- DataBuffer headersBuf = MultipartUtils.sliceFrom(buf, endIdx);
- DataBufferUtils.release(buf);
+ DataBuffer preambleBuffer = buf.split(en... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartUtils.java | @@ -23,7 +23,6 @@
import java.nio.file.Files;
import java.nio.file.Path;
-import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMessage;
import org.springframework.http.MediaType;
@@ -85,23 +84,6 @@ public static byte[] concat(byte[... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartWriterSupport.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.
@@ -32,6 +32,7 @@
import org.springframework.h... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/multipart/PartEventHttpMessageWriter.java | @@ -28,7 +28,6 @@
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.core.io.buffer.DataBufferUtils;
-import org.springframework.core.io.buffer.PooledDataBuffer;
import org.springframework.http.MediaType;
import org.springfr... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/multipart/PartGenerator.java | @@ -729,7 +729,7 @@ else if (changeState(this, newState)) {
@SuppressWarnings("BlockingMethodInNonBlockingContext")
private Mono<Void> writeInternal(DataBuffer dataBuffer) {
try {
- ByteBuffer byteBuffer = dataBuffer.asByteBuffer();
+ ByteBuffer byteBuffer = dataBuffer.toByteBuffer();
while (byteBu... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/multipart/PartHttpMessageWriter.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.
@@ -27,7 +27,6 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/protobuf/ProtobufDecoder.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.
@@ -151,7 +151,7 @@ public Message decode(DataB... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/protobuf/ProtobufEncoder.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.
@@ -30,10 +30,10 @@
import org.springframework... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/support/BaseDefaultCodecs.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.
@@ -33,6 +33,8 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/codec/xml/XmlEventDecoder.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.
@@ -181,7 +181,7 @@ public AaltoDataBufferToXml... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpResponse.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.
@@ -29,7 +29,6 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/server/reactive/JettyHttpHandlerAdapter.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.
@@ -135,7 +135,7 @@ else if (response instanceo... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/server/reactive/TomcatHttpHandlerAdapter.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.
@@ -39,7 +39,6 @@
import org.springframework... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpResponse.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.
@@ -235,7 +235,7 @@ private int writeByteBuffer... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/test/java/org/springframework/http/codec/support/ClientCodecConfigurerTests.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.
@@ -37,6 +37,8 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/test/java/org/springframework/http/codec/support/CodecConfigurerTests.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,8 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-web/src/test/java/org/springframework/http/codec/support/ServerCodecConfigurerTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2021 the original author or authors.
+ * Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,6 +36,8 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-webflux/spring-webflux.gradle | @@ -54,6 +54,7 @@ dependencies {
testRuntimeOnly("com.sun.xml.bind:jaxb-core")
testRuntimeOnly("com.sun.xml.bind:jaxb-impl")
testRuntimeOnly("com.sun.activation:jakarta.activation")
+ testRuntimeOnly("io.netty:netty5-buffer:5.0.0.Alpha4")
}
test { | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-webflux/src/main/java/org/springframework/web/reactive/result/view/freemarker/FreeMarkerView.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.
@@ -42,10 +42,10 @@
import org.springframework... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/JettyWebSocketSession.java | @@ -84,7 +84,7 @@ protected void resumeReceiving() {
@Override
protected boolean sendMessage(WebSocketMessage message) throws IOException {
- ByteBuffer buffer = message.getPayload().asByteBuffer();
+ ByteBuffer buffer = message.getPayload().toByteBuffer();
if (WebSocketMessage.Type.TEXT.equals(message.getTy... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/StandardWebSocketSession.java | @@ -73,7 +73,7 @@ protected void resumeReceiving() {
@Override
protected boolean sendMessage(WebSocketMessage message) throws IOException {
- ByteBuffer buffer = message.getPayload().asByteBuffer();
+ ByteBuffer buffer = message.getPayload().toByteBuffer();
if (WebSocketMessage.Type.TEXT.equals(message.getTy... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/UndertowWebSocketHandlerAdapter.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.
@@ -18,6 +18,8 @@
import java.nio.ByteBuffer... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/UndertowWebSocketSession.java | @@ -76,7 +76,7 @@ protected void resumeReceiving() {
@Override
protected boolean sendMessage(WebSocketMessage message) throws IOException {
- ByteBuffer buffer = message.getPayload().asByteBuffer();
+ ByteBuffer buffer = message.getPayload().toByteBuffer();
if (WebSocketMessage.Type.TEXT.equals(message.getTy... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-webflux/src/test/java/org/springframework/web/reactive/config/DelegatingWebFluxConfigurationTests.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.
@@ -112,7 +112,7 @@ public void requestMappingH... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | spring-webflux/src/test/java/org/springframework/web/reactive/config/WebFluxConfigurationSupportTests.java | @@ -144,7 +144,7 @@ public void requestMappingHandlerAdapter() {
assertThat(adapter).isNotNull();
List<HttpMessageReader<?>> readers = adapter.getMessageReaders();
- assertThat(readers.size()).isEqualTo(15);
+ assertThat(readers.size()).isEqualTo(16);
ResolvableType multiValueMapType = forClassWithGeneri... | true |
Other | spring-projects | spring-framework | 9c33d2707a8767bfe3466ce12f5a70a43ddbd15a.json | Introduce support for Netty 5 Buffer
This commit introduces support for Netty 5's Buffer, in the form of
Netty5DataBuffer. Because of the new API offered by Buffer, several
changes have been made to the DataBuffer API:
- CloseableDataBuffer is a simpler alternative to PooledDataBuffer, and
implemented by Netty5Data... | src/docs/asciidoc/core/core-databuffer-codec.adoc | @@ -125,7 +125,7 @@ release it immediately, it can do so via `DataBufferUtils.release(dataBuffer)`.
. If a `Decoder` is using `Flux` or `Mono` operators such as `flatMap`, `reduce`, and
others that prefetch and cache data items internally, or is using operators such as
`filter`, `skip`, and others that leave out ite... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java | @@ -46,7 +46,6 @@
import org.springframework.aot.generate.GeneratedMethod;
import org.springframework.aot.generate.GenerationContext;
import org.springframework.aot.generate.MethodReference;
-import org.springframework.aot.hint.ExecutableHint;
import org.springframework.aot.hint.ExecutableMode;
import org.springfr... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionPropertiesCodeGenerator.java | @@ -28,12 +28,10 @@
import java.util.Objects;
import java.util.function.BiFunction;
import java.util.function.BiPredicate;
-import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import org.springframework.aot.generate.GeneratedMethods;
-import org.springfra... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-beans/src/main/java/org/springframework/beans/factory/aot/InstanceSupplierCodeGenerator.java | @@ -28,7 +28,6 @@
import org.springframework.aot.generate.GeneratedMethod;
import org.springframework.aot.generate.GeneratedMethods;
import org.springframework.aot.generate.GenerationContext;
-import org.springframework.aot.hint.ExecutableHint;
import org.springframework.aot.hint.ExecutableMode;
import org.springf... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-beans/src/test/java/org/springframework/beans/factory/aot/InstanceSupplierCodeGeneratorTests.java | @@ -283,7 +283,7 @@ private ThrowingConsumer<TypeHint> hasMethodWithMode(ExecutableMode mode) {
}
private ThrowingConsumer<ExecutableHint> hasMode(ExecutableMode mode) {
- return hint -> assertThat(hint.getModes()).containsExactly(mode);
+ return hint -> assertThat(hint.getMode()).isEqualTo(mode);
}
@Supp... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-context/src/main/java/org/springframework/context/aot/BindingReflectionHintsRegistrar.java | @@ -25,12 +25,10 @@
import java.lang.reflect.Type;
import java.util.LinkedHashSet;
import java.util.Set;
-import java.util.function.Consumer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.springframework.aot.hint.ExecutableHint;
import org.springframework.aot... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-context/src/test/java/org/springframework/context/aot/BindingReflectionHintsRegistrarTests.java | @@ -77,7 +77,7 @@ void registerTypeForSerializationWithGetter() {
assertThat(typeHint.getType()).isEqualTo(TypeReference.of(SampleClassWithGetter.class));
assertThat(typeHint.methods()).singleElement().satisfies(methodHint -> {
assertThat(methodHint.getName()).isEqualTo("getName");
- assertThat(... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-context/src/test/kotlin/org/springframework/context/aot/KotlinBindingReflectionHintsRegistrarTests.kt | @@ -48,16 +48,15 @@ class KotlinBindingReflectionHintsRegistrarTests {
assertThat(typeHint.methods()).singleElement()
.satisfies(ThrowingConsumer { methodHint: ExecutableHint ->
assertThat(methodHint.name).isEqualTo("getName")
- assertThat(methodHint.modes)
- .containsOnly(ExecutableMode.IN... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core-test/src/test/java/org/springframework/aot/agent/InstrumentedMethodTests.java | @@ -151,15 +151,15 @@ void classGetConstructorShouldMatchInvokeDeclaredConstructorsHint() {
@Test
void classGetConstructorShouldMatchInstrospectConstructorHint() {
- hints.reflection().registerType(String.class, typeHint -> typeHint.withConstructor(Collections.emptyList(),
- constructorHint -> constructor... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/main/java/org/springframework/aot/hint/ExecutableHint.java | @@ -19,12 +19,9 @@
import java.lang.reflect.Constructor;
import java.lang.reflect.Executable;
import java.lang.reflect.Method;
-import java.util.Arrays;
-import java.util.LinkedHashSet;
import java.util.List;
-import java.util.Set;
-import org.springframework.util.ObjectUtils;
+import org.springframework.lang.Nul... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/main/java/org/springframework/aot/hint/ExecutableMode.java | @@ -18,6 +18,8 @@
import java.lang.reflect.Executable;
+import org.springframework.lang.Nullable;
+
/**
* Represent the need of reflection for a given {@link Executable}.
*
@@ -37,4 +39,13 @@ public enum ExecutableMode {
*/
INVOKE;
+ /**
+ * Specify if this mode already includes the specified {@code o... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/main/java/org/springframework/aot/hint/FieldHint.java | @@ -18,6 +18,8 @@
import java.lang.reflect.Field;
+import org.springframework.lang.Nullable;
+
/**
* A hint that describes the need of reflection on a {@link Field}.
*
@@ -33,7 +35,7 @@ public final class FieldHint extends MemberHint {
private FieldHint(Builder builder) {
super(builder.name);
- this.a... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/main/java/org/springframework/aot/hint/ReflectionHints.java | @@ -158,15 +158,25 @@ public ReflectionHints registerConstructor(Constructor<?> constructor, Consumer<
typeHint -> typeHint.withConstructor(mapParameters(constructor), constructorHint));
}
+ /**
+ * Register the need for reflection on the specified {@link Constructor},
+ * using the specified {@link Executab... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/main/java/org/springframework/aot/hint/TypeHint.java | @@ -173,6 +173,16 @@ public Builder withField(String name, Consumer<FieldHint.Builder> fieldHint) {
return this;
}
+ /**
+ * Register the need for reflection on the field with the specified name,
+ * enabling write access.
+ * @param name the name of the field
+ * @return {@code this}, to facilitate m... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/main/java/org/springframework/aot/hint/annotation/SimpleReflectiveProcessor.java | @@ -20,10 +20,7 @@
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
-import java.util.function.Consumer;
-import org.springframework.aot.hint.ExecutableHint.Builder;
-import org.springframework.aot.hint.ExecutableMode;
import org.springframework.aot.hint.Refle... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/main/java/org/springframework/aot/hint/predicate/ReflectionHintsPredicates.java | @@ -263,11 +263,11 @@ public boolean test(RuntimeHints runtimeHints) {
* and the configured {@code ExecutableMode} is compatibe
*/
static boolean includes(ExecutableHint hint, String name,
- List<TypeReference> parameterTypes, List<ExecutableMode> executableModes) {
+ List<TypeReference> parameterTypes... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/main/java/org/springframework/aot/nativex/ReflectionHintsWriter.java | @@ -85,10 +85,10 @@ private Map<String, Object> toAttributes(FieldHint hint) {
private void handleExecutables(Map<String, Object> attributes, List<ExecutableHint> hints) {
addIfNotEmpty(attributes, "methods", hints.stream()
- .filter(h -> h.getModes().contains(ExecutableMode.INVOKE) || h.getModes().isEmpty())... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/test/java/org/springframework/aot/hint/ExecutableModeTests.java | @@ -0,0 +1,60 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/test/java/org/springframework/aot/hint/ReflectionHintsTests.java | @@ -121,14 +121,46 @@ void registerTypesApplyTheSameHints() {
}
@Test
- void registerField() {
+ void registerFieldAllowsWriteByDefault() {
Field field = ReflectionUtils.findField(TestType.class, "field");
assertThat(field).isNotNull();
this.reflectionHints.registerField(field);
+ assertTestTypeFieldHin... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/test/java/org/springframework/aot/hint/TypeHintTests.java | @@ -17,6 +17,7 @@
package org.springframework.aot.hint;
import java.util.List;
+import java.util.function.Consumer;
import org.junit.jupiter.api.Test;
@@ -54,16 +55,38 @@ void createWithTypeAndReachableType() {
}
@Test
- void createWithField() {
- TypeHint hint = TypeHint.of(TypeReference.of(String.clas... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/test/java/org/springframework/aot/hint/annotation/SimpleReflectiveProcessorTests.java | @@ -60,7 +60,7 @@ void registerReflectiveHintsForConstructor() {
assertThat(typeHint.getMemberCategories()).isEmpty();
assertThat(typeHint.constructors()).singleElement().satisfies(constructorHint -> {
assertThat(constructorHint.getName()).isEqualTo("<init>");
- assertThat(constructorHint.getModes()).co... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/test/java/org/springframework/aot/hint/predicate/ReflectionHintsPredicatesTests.java | @@ -157,7 +157,7 @@ void constructorIntrospectionDoesNotMatchMissingHint() {
@Test
void constructorIntrospectionMatchesConstructorHint() {
runtimeHints.reflection().registerType(SampleClass.class, typeHint ->
- typeHint.withConstructor(Collections.emptyList(), constructorHint -> {}));
+ typeHint.withC... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/test/java/org/springframework/aot/nativex/FileNativeConfigurationWriterTests.java | @@ -106,16 +106,14 @@ void reflectionConfig() throws IOException, JSONException {
MemberCategory.INTROSPECT_PUBLIC_METHODS, MemberCategory.INTROSPECT_DECLARED_METHODS,
MemberCategory.INVOKE_PUBLIC_METHODS, MemberCategory.INVOKE_DECLARED_METHODS,
MemberCategory.PUBLIC_CLASSES, MemberCategory.DECL... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-core/src/test/java/org/springframework/aot/nativex/ReflectionHintsWriterTests.java | @@ -49,26 +49,22 @@ void empty() throws JSONException {
@Test
void one() throws JSONException {
ReflectionHints hints = new ReflectionHints();
- hints.registerType(StringDecoder.class, builder -> {
- builder
- .onReachableType(TypeReference.of(String.class))
- .withMembers(MemberCategory.PUBLIC_FIELDS... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/MessageMappingReflectiveProcessor.java | @@ -64,13 +64,13 @@ protected void registerTypeHints(ReflectionHints hints, Class<?> type) {
}
protected void registerMethodHints(ReflectionHints hints, Method method) {
- hints.registerMethod(method, hint -> hint.setModes(ExecutableMode.INVOKE));
+ hints.registerMethod(method, ExecutableMode.INVOKE);
regist... | true |
Other | spring-projects | spring-framework | 8a61866ee22c81ca6304606128a175c7c2e47a64.json | Harmonize registration of reflection hints
Closes gh-29011 | spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMappingReflectiveProcessor.java | @@ -63,13 +63,13 @@ protected void registerTypeHints(ReflectionHints hints, Class<?> type) {
}
protected void registerMethodHints(ReflectionHints hints, Method method) {
- hints.registerMethod(method, hint -> hint.setModes(ExecutableMode.INVOKE));
+ hints.registerMethod(method, ExecutableMode.INVOKE);
regist... | true |
Other | spring-projects | spring-framework | 5aa858315947867f5b5caba34834d4c6c3d0ffa3.json | Add shortcut to register an executable with a mode
See gh-29011 | spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java | @@ -46,7 +46,6 @@
import org.springframework.aot.generate.GeneratedMethod;
import org.springframework.aot.generate.GenerationContext;
import org.springframework.aot.generate.MethodReference;
-import org.springframework.aot.hint.ExecutableHint;
import org.springframework.aot.hint.ExecutableMode;
import org.springfr... | true |
Other | spring-projects | spring-framework | 5aa858315947867f5b5caba34834d4c6c3d0ffa3.json | Add shortcut to register an executable with a mode
See gh-29011 | spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionPropertiesCodeGenerator.java | @@ -28,12 +28,10 @@
import java.util.Objects;
import java.util.function.BiFunction;
import java.util.function.BiPredicate;
-import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import org.springframework.aot.generate.GeneratedMethods;
-import org.springfra... | true |
Other | spring-projects | spring-framework | 5aa858315947867f5b5caba34834d4c6c3d0ffa3.json | Add shortcut to register an executable with a mode
See gh-29011 | spring-beans/src/main/java/org/springframework/beans/factory/aot/InstanceSupplierCodeGenerator.java | @@ -28,7 +28,6 @@
import org.springframework.aot.generate.GeneratedMethod;
import org.springframework.aot.generate.GeneratedMethods;
import org.springframework.aot.generate.GenerationContext;
-import org.springframework.aot.hint.ExecutableHint;
import org.springframework.aot.hint.ExecutableMode;
import org.springf... | true |
Other | spring-projects | spring-framework | 5aa858315947867f5b5caba34834d4c6c3d0ffa3.json | Add shortcut to register an executable with a mode
See gh-29011 | spring-context/src/main/java/org/springframework/context/aot/BindingReflectionHintsRegistrar.java | @@ -25,12 +25,10 @@
import java.lang.reflect.Type;
import java.util.LinkedHashSet;
import java.util.Set;
-import java.util.function.Consumer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.springframework.aot.hint.ExecutableHint;
import org.springframework.aot... | true |
Other | spring-projects | spring-framework | 5aa858315947867f5b5caba34834d4c6c3d0ffa3.json | Add shortcut to register an executable with a mode
See gh-29011 | spring-core/src/main/java/org/springframework/aot/hint/ReflectionHints.java | @@ -158,14 +158,25 @@ public ReflectionHints registerConstructor(Constructor<?> constructor, Consumer<
typeHint -> typeHint.withConstructor(mapParameters(constructor), constructorHint));
}
+ /**
+ * Register the need for reflection on the specified {@link Constructor},
+ * using the specified {@link Executab... | true |
Other | spring-projects | spring-framework | 5aa858315947867f5b5caba34834d4c6c3d0ffa3.json | Add shortcut to register an executable with a mode
See gh-29011 | spring-core/src/test/java/org/springframework/aot/hint/ReflectionHintsTests.java | @@ -176,6 +176,16 @@ void registerConstructor() {
});
}
+ @Test
+ void registerConstructorWithMode() {
+ this.reflectionHints.registerConstructor(
+ TestType.class.getDeclaredConstructors()[0], ExecutableMode.INTROSPECT);
+ assertTestTypeConstructorHint(constructorHint -> {
+ assertThat(constructorHint.ge... | true |
Other | spring-projects | spring-framework | 5aa858315947867f5b5caba34834d4c6c3d0ffa3.json | Add shortcut to register an executable with a mode
See gh-29011 | spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/MessageMappingReflectiveProcessor.java | @@ -64,13 +64,13 @@ protected void registerTypeHints(ReflectionHints hints, Class<?> type) {
}
protected void registerMethodHints(ReflectionHints hints, Method method) {
- hints.registerMethod(method, hint -> hint.withMode(ExecutableMode.INVOKE));
+ hints.registerMethod(method, ExecutableMode.INVOKE);
regist... | true |
Other | spring-projects | spring-framework | 5aa858315947867f5b5caba34834d4c6c3d0ffa3.json | Add shortcut to register an executable with a mode
See gh-29011 | spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMappingReflectiveProcessor.java | @@ -63,13 +63,13 @@ protected void registerTypeHints(ReflectionHints hints, Class<?> type) {
}
protected void registerMethodHints(ReflectionHints hints, Method method) {
- hints.registerMethod(method, hint -> hint.withMode(ExecutableMode.INVOKE));
+ hints.registerMethod(method, ExecutableMode.INVOKE);
regist... | true |
Other | spring-projects | spring-framework | feb2a30910fe6410ffa2912fe547883de3add6c6.json | Improve precondition checks in TestClassScanner | spring-test/src/main/java/org/springframework/test/context/aot/TestClassScanner.java | @@ -17,6 +17,7 @@
package org.springframework.test.context.aot;
import java.lang.annotation.Annotation;
+import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.Comparator;
@@ -103,9 +104,7 @@ class TestClassScanner {
* @param classpathRoots the classpath roots to scan... | false |
Other | spring-projects | spring-framework | c6bcf79c0e4a79a4632e9366514223180a195160.json | Add hint for use of Qualifier in meta-annotations
Closes gh-29000 | spring-beans/src/main/java/org/springframework/beans/factory/annotation/BeanFactoryAnnotationsRuntimeHints.java | @@ -0,0 +1,36 @@
+/*
+ * Copyright 2002-2022 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | c6bcf79c0e4a79a4632e9366514223180a195160.json | Add hint for use of Qualifier in meta-annotations
Closes gh-29000 | spring-beans/src/main/resources/META-INF/spring/aot.factories | @@ -1,2 +1,5 @@
+org.springframework.aot.hint.RuntimeHintsRegistrar=\
+org.springframework.beans.factory.annotation.BeanFactoryAnnotationsRuntimeHints
+
org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor=\
org.springframework.beans.factory.aot.BeanRegistrationsAotProcessor | true |
Other | spring-projects | spring-framework | c6bcf79c0e4a79a4632e9366514223180a195160.json | Add hint for use of Qualifier in meta-annotations
Closes gh-29000 | spring-context/src/test/java/org/springframework/context/aot/ApplicationContextAotGeneratorTests.java | @@ -18,12 +18,15 @@
import java.io.IOException;
import java.lang.reflect.Proxy;
+import java.util.List;
import java.util.function.BiConsumer;
+import java.util.function.Consumer;
import org.junit.jupiter.api.Test;
import org.springframework.aot.generate.GeneratedFiles.Kind;
import org.springframework.aot.ge... | true |
Other | spring-projects | spring-framework | 0973348bde86f705f4a5d0218e23fcd54d3091be.json | Add classpath checks to JacksonModulesRuntimeHints
Closes gh-29001 | spring-web/src/main/java/org/springframework/http/converter/json/JacksonModulesRuntimeHints.java | @@ -21,6 +21,7 @@
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.RuntimeHintsRegistrar;
import org.springframework.aot.hint.TypeReference;
+import org.springframework.util.ClassUtils;
/**
* {@link RuntimeHintsRegistrar} implementation that registers reflection entries
@@ -... | false |
Other | spring-projects | spring-framework | 21577c47776f8bb12aae87351d73624cadb87aef.json | Treat MariaDB as an independent database type
See gh-28355 | spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcUtils.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.
@@ -49,6 +49,7 @@
*
* @author Thomas Risber... | true |
Other | spring-projects | spring-framework | 21577c47776f8bb12aae87351d73624cadb87aef.json | Treat MariaDB as an independent database type
See gh-28355 | spring-jdbc/src/test/java/org/springframework/jdbc/support/JdbcUtilsTests.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.
@@ -27,6 +27,7 @@
*
* @author Thomas Risber... | true |
Other | spring-projects | spring-framework | 455715899d5a93f7eaee7996e5b17ba8db20e476.json | Infer proxy on `@Lazy`-annotated injection points
This commit makes use of the new `getLazyResolutionProxyClass` on
`AutowireCandidateResolver` to detect if a injection point requires
a proxy.
Closes gh-28980 | spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java | @@ -25,6 +25,7 @@
import java.lang.reflect.Member;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
+import java.lang.reflect.Proxy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
@@ -70,6 +71,8 @@
import org.springframework.beans.factory.config.DependencyDes... | true |
Other | spring-projects | spring-framework | 455715899d5a93f7eaee7996e5b17ba8db20e476.json | Infer proxy on `@Lazy`-annotated injection points
This commit makes use of the new `getLazyResolutionProxyClass` on
`AutowireCandidateResolver` to detect if a injection point requires
a proxy.
Closes gh-28980 | spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionMethodGenerator.java | @@ -16,7 +16,10 @@
package org.springframework.beans.factory.aot;
+import java.lang.reflect.Constructor;
import java.lang.reflect.Executable;
+import java.lang.reflect.Method;
+import java.lang.reflect.Proxy;
import java.util.List;
import javax.lang.model.element.Modifier;
@@ -26,8 +29,13 @@
import org.sprin... | true |
Other | spring-projects | spring-framework | 455715899d5a93f7eaee7996e5b17ba8db20e476.json | Infer proxy on `@Lazy`-annotated injection points
This commit makes use of the new `getLazyResolutionProxyClass` on
`AutowireCandidateResolver` to detect if a injection point requires
a proxy.
Closes gh-28980 | spring-context/src/test/java/org/springframework/context/aot/ApplicationContextAotGeneratorTests.java | @@ -17,12 +17,15 @@
package org.springframework.context.aot;
import java.io.IOException;
+import java.lang.reflect.Proxy;
import java.util.function.BiConsumer;
import org.junit.jupiter.api.Test;
import org.springframework.aot.generate.GeneratedFiles.Kind;
+import org.springframework.aot.generate.GenerationCo... | true |
Other | spring-projects | spring-framework | 455715899d5a93f7eaee7996e5b17ba8db20e476.json | Infer proxy on `@Lazy`-annotated injection points
This commit makes use of the new `getLazyResolutionProxyClass` on
`AutowireCandidateResolver` to detect if a injection point requires
a proxy.
Closes gh-28980 | spring-context/src/testFixtures/java/org/springframework/context/testfixture/context/generator/annotation/LazyAutowiredFieldComponent.java | @@ -0,0 +1,41 @@
+/*
+ * 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 | 455715899d5a93f7eaee7996e5b17ba8db20e476.json | Infer proxy on `@Lazy`-annotated injection points
This commit makes use of the new `getLazyResolutionProxyClass` on
`AutowireCandidateResolver` to detect if a injection point requires
a proxy.
Closes gh-28980 | spring-context/src/testFixtures/java/org/springframework/context/testfixture/context/generator/annotation/LazyAutowiredMethodComponent.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 | 455715899d5a93f7eaee7996e5b17ba8db20e476.json | Infer proxy on `@Lazy`-annotated injection points
This commit makes use of the new `getLazyResolutionProxyClass` on
`AutowireCandidateResolver` to detect if a injection point requires
a proxy.
Closes gh-28980 | spring-context/src/testFixtures/java/org/springframework/context/testfixture/context/generator/annotation/LazyConstructorArgumentComponent.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 | 455715899d5a93f7eaee7996e5b17ba8db20e476.json | Infer proxy on `@Lazy`-annotated injection points
This commit makes use of the new `getLazyResolutionProxyClass` on
`AutowireCandidateResolver` to detect if a injection point requires
a proxy.
Closes gh-28980 | spring-context/src/testFixtures/java/org/springframework/context/testfixture/context/generator/annotation/LazyFactoryMethodArgumentComponent.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 | daf2d940e4dac49bd1a1ce19e2ac112335cc27d1.json | Remove specific JDK dynamic proxy configuration
Further refinements will be required for
MethodValidationPostProcessor since @Lazy
used by Spring Boot is not supported yet
for that use case.
See gh-28980 | spring-context/src/main/java/org/springframework/cache/annotation/CachingBeanRegistrationAotProcessor.java | @@ -1,93 +0,0 @@
-/*
- * Copyright 2002-2022 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
-... | true |
Other | spring-projects | spring-framework | daf2d940e4dac49bd1a1ce19e2ac112335cc27d1.json | Remove specific JDK dynamic proxy configuration
Further refinements will be required for
MethodValidationPostProcessor since @Lazy
used by Spring Boot is not supported yet
for that use case.
See gh-28980 | spring-context/src/main/java/org/springframework/validation/beanvalidation/MethodValidationPostProcessor.java | @@ -23,19 +23,14 @@
import org.aopalliance.aop.Advice;
import org.springframework.aop.Pointcut;
-import org.springframework.aop.framework.AopProxyUtils;
import org.springframework.aop.framework.autoproxy.AbstractBeanFactoryAwareAdvisingPostProcessor;
import org.springframework.aop.support.DefaultPointcutAdvisor;
... | true |
Other | spring-projects | spring-framework | daf2d940e4dac49bd1a1ce19e2ac112335cc27d1.json | Remove specific JDK dynamic proxy configuration
Further refinements will be required for
MethodValidationPostProcessor since @Lazy
used by Spring Boot is not supported yet
for that use case.
See gh-28980 | spring-context/src/main/resources/META-INF/spring/aot.factories | @@ -1,5 +1,3 @@
org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor= \
org.springframework.context.aot.ReflectiveProcessorBeanFactoryInitializationAotProcessor
-org.springframework.beans.factory.aot.BeanRegistrationAotProcessor= \
-org.springframework.cache.annotation.CachingBeanRegistration... | true |
Other | spring-projects | spring-framework | daf2d940e4dac49bd1a1ce19e2ac112335cc27d1.json | Remove specific JDK dynamic proxy configuration
Further refinements will be required for
MethodValidationPostProcessor since @Lazy
used by Spring Boot is not supported yet
for that use case.
See gh-28980 | spring-context/src/test/java/org/springframework/cache/annotation/CachingBeanRegistrationAotProcessorTests.java | @@ -1,111 +0,0 @@
-/*
- * Copyright 2002-2022 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
... | true |
Other | spring-projects | spring-framework | daf2d940e4dac49bd1a1ce19e2ac112335cc27d1.json | Remove specific JDK dynamic proxy configuration
Further refinements will be required for
MethodValidationPostProcessor since @Lazy
used by Spring Boot is not supported yet
for that use case.
See gh-28980 | spring-tx/src/main/java/org/springframework/transaction/annotation/TransactionBeanRegistrationAotProcessor.java | @@ -20,7 +20,6 @@
import java.util.LinkedHashSet;
import java.util.Set;
-import org.springframework.aop.framework.AopProxyUtils;
import org.springframework.aot.generate.GenerationContext;
import org.springframework.aot.hint.MemberCategory;
import org.springframework.aot.hint.RuntimeHints;
@@ -35,7 +34,7 @@
/**
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.