jdk/test/java/lang/management/ThreadMXBean/InvalidThreadID.java
changeset 30376 2ccf2cf7ea48
parent 5506 202f599c92aa
child 44423 306c020eb154
equal deleted inserted replaced
30375:6da086d0f46d 30376:2ccf2cf7ea48
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    26  * @bug     4929401
    26  * @bug     4929401
    27  * @summary ThreadMXBean.getThreadCpuTime() throws IllegalArgumentException
    27  * @summary ThreadMXBean.getThreadCpuTime() throws IllegalArgumentException
    28  *          if id <= 0 and returns -1 if the thread doesn't exist.
    28  *          if id <= 0 and returns -1 if the thread doesn't exist.
    29  * @author  Mandy Chung
    29  * @author  Mandy Chung
    30  *
    30  *
       
    31  * @modules java.management
    31  * @run main InvalidThreadID
    32  * @run main InvalidThreadID
    32  */
    33  */
    33 
    34 
    34 import java.lang.management.ThreadMXBean;
    35 import java.lang.management.ThreadMXBean;
    35 import java.lang.management.ManagementFactory;
    36 import java.lang.management.ManagementFactory;