< prev index next >
test/compiler/loopopts/CountedLoopProblem.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
*** 24,39 ****
/**
* @test
* @bug 8072753
* @summary Inner loop induction variable increment occurs before compare which causes integer overflow
! * @run main/othervm CountedLoopProblem
*
*/
! import java.util.*;
public class CountedLoopProblem {
public static void main(String[] args) throws Exception {
Random r = new Random(42);
int x = 0;
try {
--- 24,41 ----
/**
* @test
* @bug 8072753
* @summary Inner loop induction variable increment occurs before compare which causes integer overflow
! * @run main/othervm compiler.loopopts.CountedLoopProblem
*
*/
! package compiler.loopopts;
+ import java.util.Random;
+
public class CountedLoopProblem {
public static void main(String[] args) throws Exception {
Random r = new Random(42);
int x = 0;
try {
< prev index next >