<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged javadoc</title>
<link>https://ask.clojure.org/index.php/tag/javadoc</link>
<description>Powered by Question2Answer</description>
<item>
<title>Change in behavior of default javadoc `*feeling-lucky-url*` due to google change</title>
<link>https://ask.clojure.org/index.php/9752/change-behavior-default-javadoc-feeling-lucky-google-change</link>
<description>&lt;p&gt;The url which is currently used as the default &lt;code&gt;clojure.java.javadoc/*feeling-lucky-url*&lt;/code&gt; is &lt;code&gt;http://www.google.com/search?btnI=I%27m%20Feeling%20Lucky&amp;amp;q=allinurl:&lt;/code&gt;, which now takes you to a redirect notice page that requires clicking through a link to get to the google result. I believe this defeats the purpose of the feeling-lucky-url.&lt;/p&gt;
&lt;p&gt;I believe the original behavior was taking you directly to the first result. For an example of the current behavior, click here: &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.google.com/search?btnI=I%27m%20Feeling%20Lucky&amp;amp;q=allinurl:clojure&quot;&gt;https://www.google.com/search?btnI=I%27m%20Feeling%20Lucky&amp;amp;q=allinurl:clojure&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There is some discussion on this here: &lt;a rel=&quot;nofollow&quot; href=&quot;https://support.google.com/websearch/thread/15794018?hl=en&quot;&gt;https://support.google.com/websearch/thread/15794018?hl=en&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Duckduckgo happens to have a query url that works correctly:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(alter-var-root #&#039;clojure.java.javadoc/*feeling-lucky-url*
  (constantly &quot;https://duckduckgo.com/?q=%5C&quot;))
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>REPL</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/9752/change-behavior-default-javadoc-feeling-lucky-google-change</guid>
<pubDate>Mon, 02 Nov 2020 17:17:32 +0000</pubDate>
</item>
<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>
</channel>
</rss>