142N/A/*
142N/A * Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
142N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
142N/A *
142N/A * This code is free software; you can redistribute it and/or modify it
142N/A * under the terms of the GNU General Public License version 2 only, as
142N/A * published by the Free Software Foundation.
142N/A *
142N/A * This code is distributed in the hope that it will be useful, but WITHOUT
142N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
142N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
142N/A * version 2 for more details (a copy is included in the LICENSE file that
142N/A * accompanied this code).
142N/A *
142N/A * You should have received a copy of the GNU General Public License version
142N/A * 2 along with this work; if not, write to the Free Software Foundation,
142N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
142N/A *
142N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
142N/A * or visit www.oracle.com if you need additional information or have any
142N/A * questions.
142N/A */
3996N/A
142N/A/*
142N/A * @test
142N/A * @bug 4044502 4090372
142N/A * @summary The compiler refused to parse/accept increments of
1273N/A * parenthesized expressions.
2894N/A * @compile Increment.java
618N/A * @author turnidge
1273N/A */
1273N/Apublic class Increment {
142N/A int i = 0;
844N/A int j = (i)++;
2894N/A int k = (j)--;
479N/A int l = ++(k);
1273N/A int m = --(l);
142N/A}
142N/A