< prev index next >
src/java.desktop/share/classes/sun/applet/AppletPanel.java
Print this page
@@ -769,11 +769,13 @@
protected Applet createApplet(final AppletClassLoader loader) throws ClassNotFoundException,
IllegalAccessException, IOException, InstantiationException, InterruptedException {
String code = getCode();
if (code != null) {
- applet = (Applet)loader.loadCode(code).newInstance();
+ @SuppressWarnings("deprecation")
+ Object tmp = loader.loadCode(code).newInstance();
+ applet = (Applet)tmp;
} else {
String msg = "nocode";
status = APPLET_ERROR;
showAppletStatus(msg);
showAppletLog(msg);
< prev index next >