# HG changeset patch # User Jaroslav Tulach # Date 1245242759 -7200 # Node ID 0b5692417910b8dd7d86f171e82300afee798a33 # Parent 57914fd9382f41f55662d317420bb5350973bdb9 Returning back the right type of the static method - now the Beans class cannot be compiled without applet module around diff -r 57914fd9382f -r 0b5692417910 src/share/classes/java/beans/Beans.java --- a/src/share/classes/java/beans/Beans.java Tue Jun 16 17:53:32 2009 +0200 +++ b/src/share/classes/java/beans/Beans.java Wed Jun 17 14:45:59 2009 +0200 @@ -147,14 +147,8 @@ * @exception IOException if an I/O error occurs. */ - public static Object instantiate(ClassLoader cls, String beanName, BeanContext beanContext, - /** TBD: Oops , this is bad. The AppletInitializer is used from - * public API. I have not noticed that sooner. Opps. - AppletInitializer initializer - * meanwhile turning into object, but this cannot be final solution: - */ - Object initializer - ) throws IOException, ClassNotFoundException { + public static Object instantiate(ClassLoader cls, String beanName, BeanContext beanContext, AppletInitializer initializer) + throws IOException, ClassNotFoundException { InputStream ins; ObjectInputStream oins = null;