[RFC][IcedTea-WEB]: Fix for PR765
Deepak Bhole
dbhole at redhat.com
Tue Aug 9 12:09:53 PDT 2011
* Saad Mohammad <smohammad at redhat.com> [2011-08-09 15:01]:
> On 08/08/2011 03:03 PM, Saad Mohammad wrote:
> >This is the patch for PR765:
> > http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=765
> >
> >This bug is reproduced by having the jar (with the main class)
> >marked as lazy with additional resources (if any) that are also
> >marked as lazy.
> >
> CHANGELOG:
>
I see that the first jar is being added to the initial list. Is it
guaranteed to contain the main method?
Cheers,
Deepak
> 2011-08-08 Saad Mohammad <smohammad at redhat.com>
>
> * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java:
> (initializeResources): Initializes the first jar file if all resources
> are marked as lazy jars
>
>
> [ . . .]
>
> --
> Cheers,
> Saad Mohammad
>
> diff -r defa7d0051bf netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
> --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Wed Aug 03 14:11:11 2011 -0400
> +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Tue Aug 09 14:50:39 2011 -0400
> @@ -428,6 +428,10 @@
> jars[i].isCacheable() ? JNLPRuntime.getDefaultUpdatePolicy() : UpdatePolicy.FORCE
> );
> }
> +
> + //If there are no eager jars, initialize the first jar
> + if(initialJars.size() == 0)
> + initialJars.add(jars[0]);
>
> if (strict)
> fillInPartJars(initialJars); // add in each initial part's lazy jars
More information about the distro-pkg-dev
mailing list