[jdk21u-dev] RFR: 8314610: hotspot can't compile with the latest of gtest because of <iomanip>

Jan Kratochvil jkratochvil at openjdk.org
Tue Jan 2 10:27:50 UTC 2024


On Mon, 1 Jan 2024 15:17:16 GMT, Jan Kratochvil <jkratochvil at openjdk.org> wrote:

> /home/azul/azul/jdk21u-git/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp: In member function 'virtual void gc_memset_with_concurrent_readers_Test::TestBody()':
> /home/azul/azul/jdk21u-git/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp:82:34: error: 'setw' is not a member of 'std'
>    82 |                          << std::setw(2) << line_byte(lp, 0) << " "
>       |                                  ^~~~
> /home/azul/azul/jdk21u-git/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp:34:1: note: 'std::setw' is defined in header '<iomanip>'; did you forget to '#include <iomanip>'?
>    33 | #include "unittest.hpp"
>   +++ |+#include <iomanip>
>    34 |

I am just not sure whether the copyright year should be from the trunk commit (2023) or from this backport commit (2024).

-------------

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/107#issuecomment-1873844532


More information about the jdk-updates-dev mailing list