Patch to allow sharing of classloader between extentions
Deepak Bhole
dbhole at redhat.com
Fri Aug 21 11:14:16 PDT 2009
* Gary Benson <gbenson at redhat.com> [2009-08-14 04:17]:
> Deepak Bhole wrote:
> > JNLP files allow loading of child jnlps via the extension element.
> > Currently, the classloader used by these child jnlps is different
> > than the one used by the parent. When a resource request comes in,
> > the loader and its children are searched. In theory this should
> > work, but many applets don't like it. For example:
> >
> > http://javafx.com/samples/SwirlingSquares/webstart/SwirlingSquares.jnlp
> >
> > Attached patch makes it so that the same loader is shared. This is
> > not an ideal fix, but more of a workaround to let other applets
> > work. It does not break any existing loading mechanism AFAIK, and
> > allows a set of applets that didn't work before, to work.
> >
> > Thoughts?
>
> Does it allow the classes of one applet to see the classes of another?
>
Sorry, didn't even see this message :(
Nope, it does not. With this patch, the classloader can only be shared
between child jnlps of a specific instance (not even multiple instances
of the same code).
Cheers,
Deepak
> Cheers,
> Gary
>
> --
> http://gbenson.net/
More information about the distro-pkg-dev
mailing list