Test6196102.java revision 2442
2523N/A/*
2523N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2523N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2523N/A *
2523N/A * This code is free software; you can redistribute it and/or modify it
2523N/A * under the terms of the GNU General Public License version 2 only, as
2523N/A * published by the Free Software Foundation.
2523N/A *
2523N/A * This code is distributed in the hope that it will be useful, but WITHOUT
2523N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2523N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2523N/A * version 2 for more details (a copy is included in the LICENSE file that
2523N/A * accompanied this code).
2523N/A *
2523N/A * You should have received a copy of the GNU General Public License version
2523N/A * 2 along with this work; if not, write to the Free Software Foundation,
2523N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2523N/A *
2523N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2523N/A * or visit www.oracle.com if you need additional information or have any
2523N/A * questions.
2523N/A *
2523N/A */
2523N/A
2523N/A/**
2523N/A * @test
2523N/A * @bug 6196102
2523N/A * @summary Integer seems to be greater than Integer.MAX_VALUE
2523N/A *
2523N/A * @run main Test6196102
2523N/A */
2523N/A
2523N/Apublic class Test6196102 {
2523N/A static public void main(String[] args) {
2523N/A int i1 = 0;
2523N/A int i2 = Integer.MAX_VALUE;
2523N/A
2523N/A while (i1 >= 0) {
2523N/A i1++;
2523N/A if (i1 > i2) {
2523N/A System.out.println("E R R O R: " + i1);
2523N/A System.exit(97);
2523N/A }
2523N/A }
2523N/A }
2523N/A}
2523N/A
2523N/A