Returning back the right type of the static method - now the Beans class cannot be compiled without applet module around
1.1 --- a/src/share/classes/java/beans/Beans.java Tue Jun 16 17:53:32 2009 +0200
1.2 +++ b/src/share/classes/java/beans/Beans.java Wed Jun 17 14:45:59 2009 +0200
1.3 @@ -147,14 +147,8 @@
1.4 * @exception IOException if an I/O error occurs.
1.5 */
1.6
1.7 - public static Object instantiate(ClassLoader cls, String beanName, BeanContext beanContext,
1.8 - /** TBD: Oops , this is bad. The AppletInitializer is used from
1.9 - * public API. I have not noticed that sooner. Opps.
1.10 - AppletInitializer initializer
1.11 - * meanwhile turning into object, but this cannot be final solution:
1.12 - */
1.13 - Object initializer
1.14 - ) throws IOException, ClassNotFoundException {
1.15 + public static Object instantiate(ClassLoader cls, String beanName, BeanContext beanContext, AppletInitializer initializer)
1.16 + throws IOException, ClassNotFoundException {
1.17
1.18 InputStream ins;
1.19 ObjectInputStream oins = null;