[RFC][plugin]: Class loading problem.

Denis Lila dlila at redhat.com
Thu Apr 28 14:24:22 PDT 2011


> > The attached patch fixes that. I believe a good enough
> > explanation of what's happening is in the comments (if I'm
> > wrong, don't hesitate to ask).
> 
> Eh, I forgot the attachment again.

Hi.

Turns out, this patch is incomplete. Better one attached.
It also fixes a problem in the pogo.com games where
all keystrokes when chatting are ignored.


ChangeLog:
+2011-04-28  Denis Lila  <dlila at redhat.com>
+
+	* netx/net/sourceforge/jnlp/NetxPanel.java:
+	Remove unused import; add imports.
+	Add SuppressWarnings("serial")
+	(uKey, uKeyToTG, appContextCreated): New members.
+	(getFutureTG, createNewAppContext): New methods.
+	(runLoader): Pass uKey to PluginBridge's constructor.
+	(run): Remove. No longer needed.
+	(NetxPanel): Initialize uKey. If it is a new key, make a new thread
+	group for it and save it in the hash map.
+	(createAppletThread): Use getFutureTG instead of creating a thread
+	group on the spot.
+	* plugin/icedteanp/java/sun/applet/PluginAppletViewer.java:
+	(createPanel): Initialize and frame the panel in a separate thread.
+	* netx/net/sourceforge/jnlp/Launcher.java:
+	Remove unused import.
+	(createApplet, createApplication, createThreadGroup): Replace
+	AppThreadGroup with ThreadGroup. Remove all calls to setApplication.
+	* netx/net/sourceforge/jnlp/PluginBridge.java:
+	(PluginBridge): Remove the uniqueKey initialization logic. Set
+	uniqueKey to the uKey parameter.
+	* netx/net/sourceforge/jnlp/runtime/AppThreadGroup.java:
+	Remove file.
+

Regards,
Denis.

----- Original Message -----

> 
> 
> ----- Original Message -----
> > Hi.
> >C
> > When run as an applet, http://www.sweethome3d.com/index.jsp
> > is broken. To see this, go to "lights", and try to drag one
> > of them to the right. Nothing will happen, and a lot of
> > exceptions will be thrown.
> >
> 
> >
> > ChangeLog:
> > 2011-04-28 Denis Lila <dlila at redhat.com>
> >
> > * netx/net/sourceforge/jnlp/NetxPanel.java:
> > Remove unused import.
> > Add SuppressWarnings("serial")
> > (futureTG): New member.
> > (getFutureTG): New method.
> > (run): Remove. No longer needed.
> > (NetxPanel): Initialize futureTG.
> > (createAppletThread): Use futureTG instead of creating a thread
> > group
> > on the spot.
> > * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java:
> > (createPanel): Initialize and frame the panel in a separate thread.
> >
> > Any comments are much appreciated.
> >
> > Regards,
> > Denis.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: awt-classloading.patch
Type: text/x-patch
Size: 16300 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20110428/4acee49c/awt-classloading.patch 


More information about the distro-pkg-dev mailing list