2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / testsuite / libjava.compile / G19990210_3.java
blob36a56fdf81aafde7efd17218e3f376038034941e
1 /*-------------------------------------------------------------------------*/
2 /* File name : G19990210_3 */
3 /* : */
4 /* Cause : */
5 /* : */
6 /* Message : G19990210_3.java: In class `G19990210_3': */
7 /* : G19990210_3.java: In method `foo()': */
8 /* : G19990210_3.java:23: Invalid argument to `++'. */
9 /* : o.i++; */
10 /* : ^ */
11 /* : 1 error */
12 /*-------------------------------------------------------------------------*/
13 public class G19990210_3 {
14 static void foo() {
15 bar o = new bar();
16 synchronized(o) {
17 o.i++;
21 class bar {
22 static int i;