Last change
on this file was 2, checked in by bird, 22 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
Line | |
---|
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++;
|
---|
18 | }
|
---|
19 | }
|
---|
20 | }
|
---|
21 | class bar {
|
---|
22 | static int i;
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.