aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog12
-rw-r--r--NEWS1
-rw-r--r--netx/net/sourceforge/jnlp/GuiLaunchHandler.java39
3 files changed, 41 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index d0d3da8..b874077 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-10-27 Deepak Bhole <[email protected]>
+
+ PR778: Jar download and server certificate verification deadlock
+ * ChangeLog: Removed extra whitespace from previous entries
+ * NEWS: Updated
+ * netx/net/sourceforge/jnlp/GuiLaunchHandler.java (launchInitialized):
+ Moved as much code as possible out of the invokeLater block.
+
2011-10-25 Omair Majid <[email protected]>
PR804: javaws launcher incorrectly handles file names with spaces
@@ -6,7 +14,7 @@
filenames with spaces correctly.
2011-10-24 Jiri Vanek <[email protected]>
-
+
Added reproducer for - PR788: Elluminate Live! is not working
* tests/jnlp_tests/signed/MissingJar/resources/MissingJar.jnlp
* tests/jnlp_tests/signed/MissingJar/resources/MissingJar2.jnlp
@@ -19,7 +27,7 @@
testing file of reproducer, launchiing above four jnlp files, each in individual test
2011-10-17 Jiri Vanek <[email protected]>
-
+
PR564: NetX depends on sun.misc.BASE64Encoder
* configure.ac: removed IT564 comment, removed check for sun.misc.BASE64Encoder
* netx/net/sourceforge/jnlp/security/CertificateUtils.java : sun.misc.BASE64Encoder;
diff --git a/NEWS b/NEWS
index 137624f..7677244 100644
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,7 @@ Common
- PR771: IcedTea-Web certificate verification code does not use the right API
- PR742: IcedTea-Web checks certs only upto 1 level deep before declaring them untrusted.
- PR769: IcedTea-Web does not work with some ssl sites with OpenJDK7
+ - PR778: Jar download and server certificate verification deadlock
- PR789: typo in jrunscript.sh
- PR794: IcedTea-Web does not work if a Web Start app jar has a Class-Path element in the manifest
- RH734081: Javaws cannot use proxy settings from Firefox
diff --git a/netx/net/sourceforge/jnlp/GuiLaunchHandler.java b/netx/net/sourceforge/jnlp/GuiLaunchHandler.java
index 90fe15c..371d302 100644
--- a/netx/net/sourceforge/jnlp/GuiLaunchHandler.java
+++ b/netx/net/sourceforge/jnlp/GuiLaunchHandler.java
@@ -37,6 +37,7 @@ exception statement from your version. */
package net.sourceforge.jnlp;
+import java.lang.reflect.InvocationTargetException;
import java.net.URL;
import javax.swing.SwingUtilities;
@@ -95,20 +96,40 @@ public class GuiLaunchHandler implements LaunchHandler {
@Override
public void launchInitialized(final JNLPFile file) {
+
+ int preferredWidth = 500;
+ int preferredHeight = 400;
+
+ final URL splashImageURL = file.getInformation().getIconLocation(
+ IconDesc.SPLASH, preferredWidth, preferredHeight);
+
+ if (splashImageURL != null) {
+ final ResourceTracker resourceTracker = new ResourceTracker(true);
+ resourceTracker.addResource(splashImageURL, file.getFileVersion(), null, policy);
+ synchronized(mutex) {
+ try {
+ SwingUtilities.invokeAndWait(new Runnable() {
+ @Override
+ public void run() {
+ splashScreen = new JNLPSplashScreen(resourceTracker, null, null);
+ }
+ });
+ } catch (InterruptedException ie) {
+ // Wait till splash screen is created
+ while (splashScreen == null);
+ } catch (InvocationTargetException ite) {
+ ite.printStackTrace();
+ }
+
+ splashScreen.setSplashImageURL(splashImageURL);
+ }
+ }
+
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
- final int preferredWidth = 500;
- final int preferredHeight = 400;
-
- URL splashImageURL = file.getInformation().getIconLocation(
- IconDesc.SPLASH, preferredWidth, preferredHeight);
if (splashImageURL != null) {
- ResourceTracker resourceTracker = new ResourceTracker(true);
- resourceTracker.addResource(splashImageURL, file.getFileVersion(), null, policy);
synchronized(mutex) {
- splashScreen = new JNLPSplashScreen(resourceTracker, null, null);
- splashScreen.setSplashImageURL(splashImageURL);
if (splashScreen.isSplashScreenValid()) {
splashScreen.setVisible(true);
}