diff options
author | clemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2011-02-23 16:58:12 +0000 |
---|---|---|
committer | clemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2011-02-23 16:58:12 +0000 |
commit | f859ff931c28e7c6153e6d4d5356cc985e92a92b (patch) | |
tree | 0cab9e99fcd90001bd9940205670183670e1914d | |
parent | 8a3a2759774333469dcc411d0fd5433bbe7c871f (diff) | |
download | mocca-f859ff931c28e7c6153e6d4d5356cc985e92a92b.tar.gz mocca-f859ff931c28e7c6153e6d4d5356cc985e92a92b.tar.bz2 mocca-f859ff931c28e7c6153e6d4d5356cc985e92a92b.zip |
apply workaround from http://forums.oracle.com/forums/thread.jspa?messageID=7432921
Issue #MOCCA-777 - Labeltexts disappear after applet reload (Java Bug ID: 7001786)
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@910 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
-rw-r--r-- | BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java index f6ceacd0..fb71cb0d 100644 --- a/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java +++ b/BKUApplet/src/main/java/at/gv/egiz/bku/online/applet/BKUApplet.java @@ -45,6 +45,7 @@ import at.gv.egiz.stal.service.STALService; import java.applet.AppletContext; import java.awt.Color; import java.awt.Container; +import javax.swing.text.html.parser.ParserDelegator; import javax.xml.namespace.QName; @@ -151,6 +152,13 @@ public class BKUApplet extends JApplet { log.trace("Called init()."); showStatus("Initializing MOCCA applet."); + // workaround to bug, cf. + // http://forums.oracle.com/forums/thread.jspa?messageID=7432921 + // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6993691 + // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6993073 + // and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7001786 + ParserDelegator workaround = new ParserDelegator(); + HttpsURLConnection.setDefaultSSLSocketFactory(InternalSSLSocketFactory.getInstance()); String locale = getParameter(LOCALE); |