changeset 930:c20c689ba9ff

JNLPClassLoader.java: (init) attributes are alowed to access jars only once all resources are downloaded
author Jiri Vanek <jvanek@redhat.com>
date Thu, 13 Mar 2014 16:34:01 +0100
parents e53adc254895
children fdcb91be0d58
files ChangeLog netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Mar 12 17:34:10 2014 +0100
+++ b/ChangeLog	Thu Mar 13 16:34:01 2014 +0100
@@ -1,3 +1,9 @@
+2014-03-13  Jiri Vanek  <jvanek@redhat.com>
+
+	Fixed apearence of download indicator
+	* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (init) attributes
+	are alowed to access jars only once all resources are downloaded
+
 2014-03-12  Jiri Vanek  <jvanek@redhat.com>
 
 	* configure.ac: added check for /bin/bash
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java	Wed Mar 12 17:34:10 2014 +0100
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java	Thu Mar 13 16:34:01 2014 +0100
@@ -258,8 +258,6 @@
 
         this.enableCodeBase = enableCodeBase;
 
-        //as it is harmless, we can set is as soon as possible.
-        file.getManifestsAttributes().setLoader(this);
         
         AppVerifier verifier;
 
@@ -282,6 +280,8 @@
 
         initializeResources();
         
+        //loading mainfests before resources are initialised may cause waiting for resources
+        file.getManifestsAttributes().setLoader(this);
 
         // initialize permissions
         initializePermissions();