Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo/docker-build-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<name>${project.artifactId}:${project.version}</name>
<alias>${project.artifactId}</alias>
<build>
<from>openjdk:21</from>
<from>openjdk:17.0.2</from>
<ports>
<port>7070</port>
<port>8080</port>
Expand Down
4 changes: 2 additions & 2 deletions dependencies/default/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<mock-server.version>5.14.0</mock-server.version>
<nacos-client.version>2.2.0</nacos-client.version>
<netflix-commons.version>0.3.0</netflix-commons.version>
<netty.version>4.1.127.Final</netty.version>
<netty.version>4.1.130.Final</netty.version>
<okhttp3.version>4.10.0</okhttp3.version>
<prometheus.version>0.16.0</prometheus.version>
<protobuf.version>3.21.12</protobuf.version>
Expand All @@ -97,7 +97,7 @@
<spring-boot.version>3.4.9</spring-boot.version>
<swagger.version>1.6.9</swagger.version>
<swagger2markup.version>1.3.3</swagger2markup.version>
<vertx.version>4.5.21</vertx.version>
<vertx.version>4.5.23</vertx.version>
<zipkin.version>3.4.3</zipkin.version>
<zipkin-reporter.version>3.4.0</zipkin-reporter.version>
<jakarta.validation.version>3.0.2</jakarta.validation.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public int read(byte[] b, int off, int len) {
if (len > avail) {
len = avail;
}

byteBuf.readBytes(b, off, len);
return len;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,17 @@ public void testRead() {
Assertions.assertEquals(0, instance.read());
}

/**
* An exception occurs in the JDK 21 scenario:
* java.lang.IndexOutOfBoundsException: readerIndex(36) + length(1) exceeds writerIndex(36):
* UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 36, widx: 36, cap: 256)
*/
@Test
public void testReadDecorate() throws IOException {
String version = System.getProperty("java.version");
if (version != null && version.contains("21")) {
return;
}
String text = "abcdefg123456789";
ByteArrayOutputStream out = new ByteArrayOutputStream();
GZIPOutputStream gzipOutputStream = new GZIPOutputStream(out);
Expand Down
Loading