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 * @test
26 * @bug 4195445 6204179
27 * @summary JDWP, JDI: Add return value to Method Exit Event
28 * @author Jim Holmlund
29 *
30 * @modules jdk.jdi
31 * @run build TestScaffold VMConnection TargetListener TargetAdapter
32 * @run compile -g MethodExitReturnValuesTest.java
33 * @run driver MethodExitReturnValuesTest
34 */
35 import com.sun.jdi.*;
36 import com.sun.jdi.event.*;
37 import com.sun.jdi.request.*;
38 import java.util.*;
39 import java.net.URLClassLoader;
40 import java.net.URL;
41 import java.lang.reflect.Array;
42
43 /*
44 * This test has a debuggee which calls a static method
45 * for each kind of JDI Value, and then an instance method
46 * for each.
47 * The debugger turns on MethodExitEvents and checks
48 * that the right return values are included in the MethodExitEvents.
49 * Each value is stored in a static var in the debuggee. The debugger
50 * gets the values from these static vars to check for correct
|
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 * @test
26 * @bug 4195445 6204179
27 * @summary JDWP, JDI: Add return value to Method Exit Event
28 * @author Jim Holmlund
29 *
30 * @run build TestScaffold VMConnection TargetListener TargetAdapter
31 * @run compile -g MethodExitReturnValuesTest.java
32 * @run driver MethodExitReturnValuesTest
33 */
34 import com.sun.jdi.*;
35 import com.sun.jdi.event.*;
36 import com.sun.jdi.request.*;
37 import java.util.*;
38 import java.net.URLClassLoader;
39 import java.net.URL;
40 import java.lang.reflect.Array;
41
42 /*
43 * This test has a debuggee which calls a static method
44 * for each kind of JDI Value, and then an instance method
45 * for each.
46 * The debugger turns on MethodExitEvents and checks
47 * that the right return values are included in the MethodExitEvents.
48 * Each value is stored in a static var in the debuggee. The debugger
49 * gets the values from these static vars to check for correct
|