<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged java 11</title>
<link>https://ask.clojure.org/index.php/tag/java%2011</link>
<description>Powered by Question2Answer</description>
<item>
<title>clojure.java.javadoc/javadoc fails to show javadoc for JDK classes outside of java.base module on JDK 11</title>
<link>https://ask.clojure.org/index.php/8422/clojure-javadoc-javadoc-fails-javadoc-classes-outside-module</link>
<description>&lt;p&gt;When running Clojure on JDK 11, the &lt;code&gt;clojure.java.javadoc/javadoc&lt;/code&gt; function fails to open a proper URL to the JDK classes outside of the &lt;code&gt;java.base&lt;/code&gt; module.&lt;/p&gt;
&lt;p&gt;As an example:&lt;br&gt;
- &lt;code&gt;(javadoc java.lang.String)&lt;/code&gt; opens &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html&quot;&gt;https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html&lt;/a&gt;&lt;br&gt;
- &lt;code&gt;(javadoc java.sql.Connection)&lt;/code&gt; opens &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/sql/Connection.html&quot;&gt;https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/sql/Connection.html&lt;/a&gt; which is incorrect because the module name should be &lt;strong&gt;java.sql&lt;/strong&gt;, NOT &lt;strong&gt;java.base&lt;/strong&gt;.&lt;br&gt;
  The proper URL should be &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html&quot;&gt;https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is caused by the &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/clojure/clojure/blob/master/src/clj/clojure/java/javadoc.clj#L26&quot;&gt;&lt;code&gt;*core-java-api*&lt;/code&gt; definition in the &lt;code&gt;clojure.java.javadoc&lt;/code&gt; namespace&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I&#039;m wondering if there&#039;s a better way how to generically handle all standard JDK classes, not just those in the &lt;code&gt;java.base&lt;/code&gt; module.&lt;/p&gt;
&lt;p&gt;Note that initially this issue has been raised in the Emacs Cider project : &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/clojure-emacs/cider/issues/2687&quot;&gt;https://github.com/clojure-emacs/cider/issues/2687&lt;/a&gt;&lt;/p&gt;
</description>
<category>Contrib libs</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/8422/clojure-javadoc-javadoc-fails-javadoc-classes-outside-module</guid>
<pubDate>Thu, 15 Aug 2019 11:19:55 +0000</pubDate>
</item>
<item>
<title>Java 11 and Tools Namespace</title>
<link>https://ask.clojure.org/index.php/8288/java-11-and-tools-namespace</link>
<description>&lt;p&gt;I&#039;ve run into an issue where &lt;code&gt;refresh&lt;/code&gt; from &lt;code&gt;tools.namespace&lt;/code&gt; (v. &lt;code&gt;0.3.0&lt;/code&gt;) seems to work with Java 8 but not Java 11. I tried with both Clojure &lt;code&gt;1.10.0&lt;/code&gt; and &lt;code&gt;1.10.1&lt;/code&gt;. I was able to reproduce the problem on a clean virtual machine. In both cases, I was able to reload the namespaces on Java 8 but not Java 11.&lt;/p&gt;
&lt;p&gt;It&#039;s weird though -- in some of my other projects, I can reload namespaces on Java 11. I haven&#039;t been able to track down the difference. (I&#039;m also new to &lt;code&gt;tools.deps&lt;/code&gt;, so it could be I&#039;m doing something wrong there.)&lt;/p&gt;
&lt;p&gt;I put together a reproduction here: &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/thomascothran/namespace-repro&quot;&gt;https://github.com/thomascothran/namespace-repro&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&#039;m assuming it&#039;s likely an error on my end, but the only thing I&#039;ve been able to narrow it down to is the Java version.&lt;/p&gt;
&lt;p&gt;Reference: &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojure.atlassian.net/browse/TNS-54&quot;&gt;https://clojure.atlassian.net/browse/TNS-54&lt;/a&gt;&lt;/p&gt;
</description>
<category>tools.namespace</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/8288/java-11-and-tools-namespace</guid>
<pubDate>Wed, 31 Jul 2019 14:50:56 +0000</pubDate>
</item>
</channel>
</rss>