blob: f1052226c9f6fd14f5dec979e44daffc4bf79fb6 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
public class InspectTests {
static {
Outer s = new Outer() {
char get() {
return getchar(); //bp here
}
char getchar() {return 's';}
};
s.get();
}
Outer a = new Outer() {
char get() {
return getchar(); //bp here
}
char getchar() {return 'a';}
};
void m1() {
Outer b = new Outer() {
char get() {
return getchar(); //bp here
}
char getchar() {return 'b';}
};
b.get();
}
public static void main(String[] args) {
InspectTests it = new InspectTests();
it.a.get();
it.m1();
}
}
class Outer {
char get() {return getchar();}
char getchar() {return 'x';}
}