aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog4
-rw-r--r--libjava/java/beans/Beans.java20
2 files changed, 13 insertions, 11 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index ef40057..ee876dc 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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
diff --git a/libjava/java/beans/Beans.java b/libjava/java/beans/Beans.java
index 08e5623..e59b04b 100644
--- a/libjava/java/beans/Beans.java
+++ b/libjava/java/beans/Beans.java
@@ -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;
}