Other |
---|
1.2.2 1.2.2Fixed |
Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
In JDK 1.2, there is a bug in sun.applet.AppletClassloader.getBytes(). When applet class are loaded by the appletclassloader, it uses HttpURLConnection.getInputStream() for downloading class from the codebase. However, it never checks the result of the HTTP connection. In case the file is missing on the server, HttpURLConnection.getInputStream will still return back a stream, but the stream is actually the error message. Thus, when appletclassloader tries to call defineClass on the stream that is returned from getInputStream(), it will return in exception in this case. This bug has been doing lots of damages for Java Plug-in 1.2, and it actually causes Java Plug-in to crash in IE on Win95. This bug should be fixed by always checking the respond code when making the HTTP connection. stanley.ho@eng
|