Skip to content

Commit 3f84e7b

Browse files
committed
8347000: Bug in com/sun/net/httpserver/bugs/B6361557.java test
Backport-of: 5e6cda4799a6bf12370bc6a04b218ebed32dee53
1 parent 49e133e commit 3f84e7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jdk/com/sun/net/httpserver/bugs/B6361557.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -65,7 +65,7 @@ public void handle (HttpExchange t)
6565
}
6666

6767
final static String request = "GET /test/foo.html HTTP/1.1\r\nContent-length: 0\r\n\r\n";
68-
final static ByteBuffer requestBuf = ByteBuffer.allocate(64).put(request.getBytes());
68+
final static ByteBuffer requestBuf = ByteBuffer.wrap(request.getBytes());
6969

7070
public static void main (String[] args) throws Exception {
7171
Handler handler = new Handler();

0 commit comments

Comments
 (0)