Name: diC59631 Date: 08/25/97
Product: JDK1.1.1, 1.1.2, 1.1.3 on Linux and Windows.
The following program cannot be compiled:
// test.java
import java.applet.*;
import java.io.*;
public class test extends Applet {
StringBuffer lineBuffer;
int ptr;
public void init() {
lineBuffer = new StringBuffer();
ptr = 0;
}
public void run() {
InputStream stream = new InputStream() {
public int read() throws IOException {
test.this.processInterrupt();
while (lineBuffer.length() <= ptr) test.this.inputLine();
return lineBuffer.charAt(ptr++);
}
};
}
public synchronized void inputLine() {}
private void processInterrupt() {}
}
company - Oregon State University , email - ###@###.###
======================================================================
- duplicates
-
JDK-4051281 Problem compiling when inner class references a private method
-
- Closed
-