* java/bean/Beans.java (instantiate): enable Applet code from Classpath
authorMark Wielaard <mark@klomp.org>
Thu, 18 Jan 2001 00:43:17 +0000 (00:43 +0000)
committerMark Wielaard <mark@gcc.gnu.org>
Thu, 18 Jan 2001 00:43:17 +0000 (00:43 +0000)
From-SVN: r39105

libjava/ChangeLog
libjava/java/beans/Beans.java

index ef40057..ee876dc 100644 (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 
index 08e5623..e59b04b 100644 (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;
        }