* java/bean/Beans.java (instantiate): enable Applet code from Classpath

From-SVN: r39105
This commit is contained in:
Mark Wielaard 2001-01-18 00:43:17 +00:00 committed by Mark Wielaard
parent 9ca4a2fd9f
commit d150822e55
2 changed files with 13 additions and 11 deletions

View File

@ -1,3 +1,7 @@
2001-01-17 Mark Wielaard <mark@klomp.org>
* java/bean/Beans.java (instantiate): enable Applet code from Classpath
2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/Class.h (isInterface): Move implementation from

View File

@ -28,7 +28,7 @@ executable file might be covered by the GNU General Public License. */
package java.beans;
import java.io.*;
// import java.applet.*;
import java.applet.*;
import gnu.java.io.*;
/**
@ -116,16 +116,14 @@ public class Beans {
}
}
/* FIXME - Turned off since java.applet doesn't exist for libgcj.
* FIXME if(bean instanceof Applet) {
* FIXME Applet a = (Applet)bean;
* FIXME //a.setAppletContext(???);
* FIXME //a.setStub(???);
* FIXME if(serStream == null) {
* FIXME a.init();
* FIXME }
* FIXME }
* FIXME ********************************************************/
if(bean instanceof Applet) {
Applet a = (Applet)bean;
//a.setAppletContext(???);
//a.setStub(???);
if(serStream == null) {
a.init();
}
}
return bean;
}