/hg/icedtea-web: 3 new changesets

jvanek at icedtea.classpath.org jvanek at icedtea.classpath.org
Tue Sep 12 08:07:12 UTC 2017


changeset b3564f5e62ff in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=b3564f5e62ff
author: Jiri Vanek <jvanek at redhat.com>
date: Tue Sep 12 09:25:10 2017 +0200

	Plugin made work again with jdk9

	* launcher/launchers.in: added exports for sun.applet
	* plugin/icedteanp/IcedTeaNPPlugin.cc: same


changeset 31922f65280b in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=31922f65280b
author: Jiri Vanek <jvanek at redhat.com>
date: Tue Sep 12 09:56:48 2017 +0200

	Get rid of X509Factory class usage

	* netx/net/sourceforge/jnlp/security/CertificateUtils.java: removed import and usage of
	X509Factory (replaced by hardcoded string). Still better then reflection.
	* configure.ac: removed check for sun.security.provider.X509Factory


changeset 0ef6f6c93476 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=0ef6f6c93476
author: Jiri Vanek <jvanek at redhat.com>
date: Tue Sep 12 10:16:24 2017 +0200

	Set source language version for javadoc generation for jdk9

	* Makefile.am: (JAVADOC_OPTS) if HAVE_JAVA9 then -source is appended with
	correct IT_LANGUAGE_SOURCE_VERSION number


diffstat:

 ChangeLog                                                |  20 ++++++++++++++++
 Makefile.am                                              |   3 ++
 configure.ac                                             |   1 -
 launcher/launchers.in                                    |   4 +++
 netx/net/sourceforge/jnlp/security/CertificateUtils.java |   5 +--
 plugin/icedteanp/IcedTeaNPPlugin.cc                      |   3 +-
 6 files changed, 31 insertions(+), 5 deletions(-)

diffs (107 lines):

diff -r 7560f34ddab8 -r 0ef6f6c93476 ChangeLog
--- a/ChangeLog	Thu Jul 20 18:10:10 2017 +0200
+++ b/ChangeLog	Tue Sep 12 10:16:24 2017 +0200
@@ -1,9 +1,29 @@
+2017-09-12  Fridrich Strba  <fridrich.strba at suse.com>
+
+	Set source language version for javadoc generation for jdk9
+	* Makefile.am: (JAVADOC_OPTS) if HAVE_JAVA9 then -source is appended with 
+	correct IT_LANGUAGE_SOURCE_VERSION number
+
+2017-09-12  Fridrich Strba  <fridrich.strba at suse.com>
+
+	Get rid of X509Factory class usage
+	* netx/net/sourceforge/jnlp/security/CertificateUtils.java: removed import and usage of
+	X509Factory (replaced by hardcoded string). Still better then reflection.
+	* configure.ac: removed check for sun.security.provider.X509Factory
+
+2017-09-12  Fridrich Strba  <fridrich.strba at suse.com>
+
+	Plugin made work again with jdk9
+	* launcher/launchers.in: added exports for sun.applet
+	* plugin/icedteanp/IcedTeaNPPlugin.cc: same
+
 2017-07-20  Jiri Vanek <jvanek at redhat.com>
 
 	Post-release changes
 	* NEWS: added 1.8 section
 	* configure.ac: (AC_INIT) bumped to 1.8pre
 
+
 2017-07-20  Jiri Vanek <jvanek at redhat.com>
 
 	* javaws.desktop.in: value type changed from %f (file) to %u (url)
diff -r 7560f34ddab8 -r 0ef6f6c93476 Makefile.am
--- a/Makefile.am	Thu Jul 20 18:10:10 2017 +0200
+++ b/Makefile.am	Tue Sep 12 10:16:24 2017 +0200
@@ -218,6 +218,9 @@
 if ENABLE_DOCS
 JAVADOC_OPTS=-use -keywords -encoding UTF-8 -splitIndex \
  -bottom '<font size="-1"> <a href="http://icedtea.classpath.org/bugzilla">Submit a bug or feature</a></font>'
+if HAVE_JAVA9
+JAVADOC_OPTS+=-source $(IT_LANGUAGE_SOURCE_VERSION)
+endif
 if JAVADOC_SUPPORTS_J_OPTIONS
 JAVADOC_MEM_OPTS=-J-Xmx1024m -J-Xms128m
 endif
diff -r 7560f34ddab8 -r 0ef6f6c93476 configure.ac
--- a/configure.ac	Thu Jul 20 18:10:10 2017 +0200
+++ b/configure.ac	Tue Sep 12 10:16:24 2017 +0200
@@ -95,7 +95,6 @@
 IT_CHECK_FOR_CLASS(JAVA_NET_HTTPCOOKIE, [java.net.HttpCookie], [some.pkg], [])
 IT_CHECK_FOR_CLASS(JAVA_NET_COOKIEHANDLER, [java.net.CookieHandler], [some.pkg], [])
 # in jdk9, those classes are using internal apis, must be enabled via module cheats
-IT_CHECK_FOR_CLASS(SUN_SECURITY_PROVIDER_X509FACTORY, [sun.security.provider.X509Factory], [some.pkg], [$JAVA_BASE])
 IT_CHECK_FOR_CLASS(SUN_SECURITY_UTIL_SECURITYCONSTANTS, [sun.security.util.SecurityConstants], [some.pkg], [$JAVA_BASE])
 IT_CHECK_FOR_CLASS(SUN_SECURITY_UTIL_HOSTNAMECHECKER, [sun.security.util.HostnameChecker], [some.pkg], [$JAVA_BASE])
 IT_CHECK_FOR_CLASS(SUN_SECURITY_X509_X500NAME, [sun.security.x509.X500Name], [some.pkg], [$JAVA_BASE])
diff -r 7560f34ddab8 -r 0ef6f6c93476 launcher/launchers.in
--- a/launcher/launchers.in	Thu Jul 20 18:10:10 2017 +0200
+++ b/launcher/launchers.in	Tue Sep 12 10:16:24 2017 +0200
@@ -167,6 +167,10 @@
 k=$((k+1))
 COMMAND[k]="java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop"
 k=$((k+1))
+COMMAND[k]="--add-exports"
+k=$((k+1))
+COMMAND[k]="java.desktop/sun.applet=ALL-UNNAMED,jdk.jsobject"
+k=$((k+1))
 fi
 
 
diff -r 7560f34ddab8 -r 0ef6f6c93476 netx/net/sourceforge/jnlp/security/CertificateUtils.java
--- a/netx/net/sourceforge/jnlp/security/CertificateUtils.java	Thu Jul 20 18:10:10 2017 +0200
+++ b/netx/net/sourceforge/jnlp/security/CertificateUtils.java	Tue Sep 12 10:16:24 2017 +0200
@@ -58,7 +58,6 @@
 import net.sourceforge.jnlp.runtime.Translator;
 import net.sourceforge.jnlp.util.logging.OutputController;
 import net.sourceforge.jnlp.util.replacements.BASE64Encoder;
-import sun.security.provider.X509Factory;
 
 /**
  * Common utilities to manipulate certificates. Provides methods to add
@@ -193,9 +192,9 @@
             CertificateException {
 
         BASE64Encoder encoder = new BASE64Encoder();
-        out.println(X509Factory.BEGIN_CERT);
+        out.println("-----BEGIN CERTIFICATE-----");
         encoder.encodeBuffer(cert.getEncoded(), out);
-        out.println(X509Factory.END_CERT);
+        out.println("-----END CERTIFICATE-----");
     }
 
     public static void dumpPKCS12(String alias, File file, KeyStore ks, char[] password)
diff -r 7560f34ddab8 -r 0ef6f6c93476 plugin/icedteanp/IcedTeaNPPlugin.cc
--- a/plugin/icedteanp/IcedTeaNPPlugin.cc	Thu Jul 20 18:10:10 2017 +0200
+++ b/plugin/icedteanp/IcedTeaNPPlugin.cc	Tue Sep 12 10:16:24 2017 +0200
@@ -1588,7 +1588,8 @@
     "java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop",
     "java.desktop/sun.applet=ALL-UNNAMED,java.desktop",
     "java.base/sun.security.action=ALL-UNNAMED,java.desktop",
-    "java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop"
+    "java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop",
+    "java.desktop/sun.applet=ALL-UNNAMED,jdk.jsobject"
 };
 
 NPError


More information about the distro-pkg-dev mailing list