Re: FreeMarker's usage of com.sun.* packages and JDK9

Christopher BROWN <[email protected]> Wed, 29 Jul 2015 22:39:26 +0200
Newsgroups gmane.comp.web.freemarker.user
Message-ID <CAHL_zcMOQSJwyTGzu2AL+KDRb8Owq-obPuXgCfMOr+istkP9BQ@mail.gmail.com>
--===============6681227047215245003==
Content-Type: multipart/alternative; boundary=001a11c3cc6e81e26a051c09970f

--001a11c3cc6e81e26a051c09970f
Content-Type: text/plain; charset=UTF-8

I don't use this feature of FreeMarker, so I haven't had any bother with
it.  Just thought I'd let you know, having run "jdeps" on FreeMarker (and
other dependencies).

Hope that helps someone,
Christopher


On 29 July 2015 at 22:22, Daniel Dekany <[email protected]> wrote:

> Does it actually cause error on JDK 9?
>
> Note that FreeMarker only uses those com.sun packages if Xalan
> (org.apache.xpath specifically) is not in the class path. If neither
> is found, it just disables XPath support in its DOM wrapper, which
> will cause error when a template tries to use XPath. (Also if someone
> configures FM to use Jaxen, it won't look for any of these.)
>
> Anyway, it might worth reviewing if on modern Java versions the
> desired functionality has become part of the public XML API-s. But
> there's not such activity going on right now.
>
> --
> Thanks,
>  Daniel Dekany
>
>
> Wednesday, July 29, 2015, 1:27:45 PM, Christopher BROWN wrote:
>
> > Hello,
> >
> > I just ran the "jdeps" tool against FreeMarker 2.3.23 and it
> > identified the following incompatible package usage as of JDK9 :
> >
> > jdeps freemarker.jar | grep 'JDK internal'
> >       -> com.sun.org.apache.xml.internal.utils              JDK internal
> API (rt.jar)
> >       -> com.sun.org.apache.xpath.internal                  JDK internal
> API (rt.jar)
> >       -> com.sun.org.apache.xpath.internal.objects          JDK internal
> API (rt.jar)
> >
> > Refer to:
> >
> https://wiki.openjdk.java.net/display/Adoption/JDK+9+Outreach#JDK9Outreach-Runjdepsonyourcode
> >
> > Any plans to fix this?
> >
> > Thanks,
> > Christopher
>
>

--001a11c3cc6e81e26a051c09970f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I don&#39;t use this feature of FreeMarker, so I haven&#39=
;t had any bother with it.=C2=A0 Just thought I&#39;d let you know, having =
run &quot;jdeps&quot; on FreeMarker (and other dependencies).<div class=3D"=
gmail_extra"><br clear=3D"all"><div><div class=3D"gmail_signature">Hope tha=
t helps someone,<br>Christopher<br></div></div><div class=3D"gmail_signatur=
e"><br></div>
<br><div class=3D"gmail_quote">On 29 July 2015 at 22:22, Daniel Dekany <spa=
n dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">=
[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quo=
te" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"=
>Does it actually cause error on JDK 9?<br>
<br>
Note that FreeMarker only uses those com.sun packages if Xalan<br>
(org.apache.xpath specifically) is not in the class path. If neither<br>
is found, it just disables XPath support in its DOM wrapper, which<br>
will cause error when a template tries to use XPath. (Also if someone<br>
configures FM to use Jaxen, it won&#39;t look for any of these.)<br>
<br>
Anyway, it might worth reviewing if on modern Java versions the<br>
desired functionality has become part of the public XML API-s. But<br>
there&#39;s not such activity going on right now.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
--<br>
Thanks,<br>
=C2=A0Daniel Dekany<br>
</font></span><span class=3D"im HOEnZb"><br>
<br>
Wednesday, July 29, 2015, 1:27:45 PM, Christopher BROWN wrote:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt; I just ran the &quot;jdeps&quot; tool against FreeMarker 2.3.23 and it=
<br>
&gt; identified the following incompatible package usage as of JDK9 :<br>
&gt;<br>
&gt; jdeps freemarker.jar | grep &#39;JDK internal&#39;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0-&gt; com.sun.org.apache.xml.internal.utils=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 JDK internal API (rt.jar)<=
br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0-&gt; com.sun.org.apache.xpath.internal=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 JDK internal AP=
I (rt.jar)<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0-&gt; com.sun.org.apache.xpath.internal.obje=
cts=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 JDK internal API (rt.jar)<br>
&gt;<br>
&gt; Refer to:<br>
&gt; <a href=3D"https://wiki.openjdk.java.net/display/Adoption/JDK+9+Outrea=
ch#JDK9Outreach-Runjdepsonyourcode" rel=3D"noreferrer" target=3D"_blank">ht=
tps://wiki.openjdk.java.net/display/Adoption/JDK+9+Outreach#JDK9Outreach-Ru=
njdepsonyourcode</a><br>
&gt;<br>
</span><div class=3D"HOEnZb"><div class=3D"h5">&gt; Any plans to fix this?<=
br>
&gt;<br>
&gt; Thanks,<br>
&gt; Christopher<br>
<br>
</div></div></blockquote></div><br></div></div>

--001a11c3cc6e81e26a051c09970f--


--===============6681227047215245003==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

--===============6681227047215245003==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user

--===============6681227047215245003==--