[2681] in java-interest
Applet error over network
daemon@ATHENA.MIT.EDU (Thomas Hickey)
Tue Oct 10 11:17:12 1995
From: hickey@oclc.org (Thomas Hickey)
Date: Tue, 10 Oct 1995 09:02:11 -0400
To: java-interest@java.sun.com
Here is a class which seems to run fine when run straight from
disk, but fails when downloaded from an http server:
import java.applet.*;
import java.net.URL;
import java.io.*;
class TestStream extends DataInputStream{
TestStream(InputStream in){
super(in);
System.out.println("Test2 created");
}
}
public class TestApplet extends Applet {
TestStream tStream;
public void init() {
try {
InputStream s = new URL(getDocumentBase(),
getParameter("file")).openStream();
tStream = new TestStream(s);
} catch (Exception e){
}
}
}
Here's the error from appletviewer:
VERIFIER CLASS ERROR TestStream:
Class TestStream overrides final method <init>.(Ljava/io/InputStream;)V
Very simliar code will work if FilterInputStream is used instead of
DataInputStream. Is this a bug, or am I missing something? It also
fails to load when using Netscape Navigator 2.0b1 on NT.
--Th
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com