[rfc][icedtea-web][patch] Patch to build icedtea-web 1.5.1 with java9

Fridrich Strba fridrich.strba at suse.com
Thu Oct 9 08:24:38 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello, good people,

I tried to use icedtea-web plugin with java9 and had to use the
attached patch to be able to build it against java9.

Somehow, the Vector<?> was resulting in problems with resolution
resolution what function to call. Removing the diamond operator there
worked to pass the compilation. Not 100% sure though what is going on
there.

As for the sun.misc.Ref, it is not existing any more in java9. I
looked at the implementation of AppletImageRef and it is internally in
java9 implemented using the java.lang.ref.SoftReference, hence the
modification. Not sure though how to handle that in a more generic
way, since I don't assume that will work with other implementation of
AppletImageRef and -- to be honest -- I have no clue whether my patch
has any sense at all.

With this patch, I was able to build icetea-web against java9 and also
the test applets that I tried worked.

Please, comment on this and don't hesitate to tell me it is completely
wrong if that is the case.

Cheers

Fridrich
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlQ2RkYACgkQu9a1imXPdA/RvwCeP8/5orpa8uVQDnWAlTjqAq6H
GnwAn2ZBtQEyKAdBd007tvec7CaOMr7d
=WwAF
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icedtea-web-1.5.1-java9.patch
Type: text/x-patch
Size: 2887 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20141009/c7a03efd/icedtea-web-1.5.1-java9.patch>


More information about the distro-pkg-dev mailing list