Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jdi/EventRequest/_bounds_/eventrequest001/TestDescription.java
42362 views
1
/*
2
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
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
7
* published by the Free Software Foundation.
8
*
9
* This code is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
* version 2 for more details (a copy is included in the LICENSE file that
13
* accompanied this code).
14
*
15
* You should have received a copy of the GNU General Public License version
16
* 2 along with this work; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
*
19
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
* or visit www.oracle.com if you need additional information or have any
21
* questions.
22
*/
23
24
25
/*
26
* @test
27
*
28
* @summary converted from VM Testbase nsk/jdi/EventRequest/_bounds_/eventrequest001.
29
* VM Testbase keywords: [jpda, jdi]
30
* VM Testbase readme:
31
* DESCRIPTION:
32
* The test checks up the methods of com.sun.jdi.EventRequest:
33
* 1. putProperty(Object, Object)
34
* 2. getProperty(Object)
35
* 3. setSuspendPolicy(int)
36
* to correctly work for boundary values of argument.
37
* The test performs the next testcases:
38
* 1. putProperty(null, String) - in this case it is expected
39
* property <null> with value of <String> will be created.
40
* No exception must be thrown.
41
* 2. getProperty(null) - value of <String> from the previous
42
* case is expected as return value. No exception must be thrown.
43
* 3. setSuspendPolicy(int) is checked for the next parameters:
44
* Integer.MIN_VALUE, -1, Integer.MAX_VALUE. IllegalArgumentException
45
* is expected.
46
* COMMENTS:
47
* 4777928 TEST_BUG: two jdi tests should expect IllegalArgumentException
48
* Test fixed according to test bug:
49
* 4798088 TEST_BUG: setBreakpoint() method depends of the locations implementation
50
* - using standard Debugee.setBreakpoint() method
51
* - adjusting source line numbers used for setting breakpoint
52
* Test fixed according to test bug:
53
* 4862601 TEST_BUG: JDI: Unexpected exception was thrown for argument: -2147483648
54
*
55
* @library /vmTestbase
56
* /test/lib
57
* @build nsk.jdi.EventRequest._bounds_.eventrequest001
58
* nsk.jdi.EventRequest._bounds_.eventrequest001a
59
* @run main/othervm
60
* nsk.jdi.EventRequest._bounds_.eventrequest001
61
* -verbose
62
* -arch=${os.family}-${os.simpleArch}
63
* -waittime=5
64
* -debugee.vmkind=java
65
* -transport.address=dynamic
66
* -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"
67
*/
68
69
70