8348324: The failure handler cannot be build by JDK 24 due to restricted warning

Reviewed-by: jwaters, jpai
This commit is contained in:
Magnus Ihse Bursie 2025-01-23 07:51:11 +00:00
parent 66513ddbe9
commit e69e5b7960

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -36,6 +36,7 @@ import java.nio.file.Path;
* A timeout handler for jtreg, which gathers information about the timed out
* process and its children.
*/
@SuppressWarnings("restricted")
public class GatherProcessInfoTimeoutHandler extends TimeoutHandler {
private static final boolean HAS_NATIVE_LIBRARY;
static {