4138N/A/*
4138N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
4138N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4138N/A *
4138N/A * This code is free software; you can redistribute it and/or modify it
4138N/A * under the terms of the GNU General Public License version 2 only, as
4138N/A * published by the Free Software Foundation.
4138N/A *
4138N/A * This code is distributed in the hope that it will be useful, but WITHOUT
4138N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4138N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4138N/A * version 2 for more details (a copy is included in the LICENSE file that
4138N/A * accompanied this code).
4138N/A *
4138N/A * You should have received a copy of the GNU General Public License version
4138N/A * 2 along with this work; if not, write to the Free Software Foundation,
4138N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4138N/A *
4138N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4138N/A * or visit www.oracle.com if you need additional information or have any
4138N/A * questions.
4138N/A */
4138N/A
4138N/A/**
4138N/A * Complex example for the "access constructor tags" issue.
4138N/A * This test causes Lower to evaluate all classes defined in installNext
4138N/A * before they are lowered, thus preventing the use of Lower.classdefs
4138N/A * as a way of determining whether a class has been translated or not.
4138N/A */
4138N/Aclass GraphicalInstaller {
4138N/A private BackgroundInstaller backgroundInstaller;
4138N/A
4138N/A private void installNext() {
4138N/A final Integer x = 0;
4138N/A class X {
4138N/A Object o = new Object() { int y = x; };
4138N/A };
4138N/A new X();
4138N/A if (false) {
4138N/A new Runnable(){
4138N/A public void run() {
4138N/A }
4138N/A };
4138N/A }
4138N/A }
4138N/A
4138N/A private void installSuiteCommon() {
4138N/A backgroundInstaller = new BackgroundInstaller();
4138N/A }
4138N/A
4138N/A private static class BackgroundInstaller {
4138N/A private BackgroundInstaller() {
4138N/A }
4138N/A }
4138N/A}
4138N/A