<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions and answers in java.data</title>
<link>https://ask.clojure.org/index.php/qa/contrib-libs/java-data</link>
<description></description>
<item>
<title>Answered: clojure.java.data/from-java throws stack overflow</title>
<link>https://ask.clojure.org/index.php/14379/clojure-java-data-from-java-throws-stack-overflow?show=14399#a14399</link>
<description>&lt;p&gt;Christos,&lt;/p&gt;
&lt;p&gt;Can you provide more detail on exactly how I can reproduce this?&lt;/p&gt;
&lt;p&gt;Preferably, a small completely self-contained repo on GitHub with a README explaining the steps.&lt;/p&gt;
&lt;p&gt;Without more information, I cannot even begin to figure out what might be going on here.&lt;/p&gt;
</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14379/clojure-java-data-from-java-throws-stack-overflow?show=14399#a14399</guid>
<pubDate>Thu, 20 Feb 2025 00:06:57 +0000</pubDate>
</item>
<item>
<title>Answered: clojure.java.data.builder fails with overloaded setter</title>
<link>https://ask.clojure.org/index.php/14349/clojure-java-data-builder-fails-with-overloaded-setter?show=14355#a14355</link>
<description>&lt;p&gt;Since &lt;code&gt;modelName&lt;/code&gt; is not supplied as a property, in this case it could just ignore that setter altogether -- so I consider that one bug (&lt;code&gt;java.data&lt;/code&gt; will fail if there are overloaded setters that you don't care about).&lt;/p&gt;
&lt;p&gt;In the case where you are trying to build with a property that is overloaded, &lt;code&gt;java.data&lt;/code&gt; would have to perform some sort of overload resolution to try to pick a &quot;best match&quot; which would be fairly complex.&lt;/p&gt;
&lt;p&gt;What it could do is pick one setter for which &lt;code&gt;instance?&lt;/code&gt; is true of the parameter type and the property value -- and complain if more than one setter satisfies that. That would still be somewhat overprescriptive but it would be less restrictive than the status quo.&lt;/p&gt;
&lt;p&gt;See &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojure.atlassian.net/issues/JDATA-24&quot;&gt;https://clojure.atlassian.net/issues/JDATA-24&lt;/a&gt; and &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojure.atlassian.net/issues/JDATA-25&quot;&gt;https://clojure.atlassian.net/issues/JDATA-25&lt;/a&gt;&lt;/p&gt;
</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14349/clojure-java-data-builder-fails-with-overloaded-setter?show=14355#a14355</guid>
<pubDate>Wed, 22 Jan 2025 23:35:40 +0000</pubDate>
</item>
<item>
<title>Answered: Should `(clojure.java.data/from-java-deep Class {})` work?</title>
<link>https://ask.clojure.org/index.php/13581/should-clojure-java-data-from-java-deep-class-work?show=13591#a13591</link>
<description>&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://clojure.atlassian.net/browse/JDATA-23&quot;&gt;https://clojure.atlassian.net/browse/JDATA-23&lt;/a&gt; -- I probably won't get to it this month, but the exact solution needs some analysis anyway.&lt;/p&gt;
</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/13581/should-clojure-java-data-from-java-deep-class-work?show=13591#a13591</guid>
<pubDate>Wed, 03 Jan 2024 05:44:58 +0000</pubDate>
</item>
<item>
<title>Answered: Please update log4j</title>
<link>https://ask.clojure.org/index.php/11383/please-update-log4j?show=11393#a11393</link>
<description>&lt;p&gt;Aaah, I see. Just for the record, how I came to my wrong conclusion:&lt;/p&gt;
&lt;p&gt;I deleted the log4j from my maven repository:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;rm -rf ~/.m2/repository/org/apache/logging/log4j/
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Ran my build:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ clojure -X:depstar uberjar :jar target/foo.jar
Downloading: org/apache/logging/log4j/log4j-core/2.14.1/log4j-core-2.14.1.pom from central
Downloading: org/apache/logging/log4j/log4j/2.14.1/log4j-2.14.1.pom from central
Downloading: org/apache/logging/logging-parent/3/logging-parent-3.pom from central
Downloading: org/apache/logging/log4j/log4j-api/2.14.1/log4j-api-2.14.1.pom from central
Downloading: org/apache/logging/log4j/log4j-core/2.14.1/log4j-core-2.14.1.jar from central
Downloading: org/apache/logging/log4j/log4j-api/2.14.1/log4j-api-2.14.1.jar from central
...
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And wondered why it downloads log4j?&lt;/p&gt;
&lt;p&gt;And then I saw the &lt;code&gt;update log4j again&lt;/code&gt; commit from Alex in the clojure/tools.logging &lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/clojure/tools.logging/commit/8e8f899c00d79b03a7f5a3a83e52433d689feaf7&quot;&gt;https://github.com/clojure/tools.logging/commit/8e8f899c00d79b03a7f5a3a83e52433d689feaf7&lt;/a&gt;&lt;br&gt;
, (payed no attention to &lt;code&gt;pom.xml&lt;/code&gt;) and missed that it's only in the &lt;code&gt;dev&lt;/code&gt; profile of the &lt;code&gt;project.clj&lt;/code&gt;, since it's higher up in the file and does not(!) get listed in the additions/deletions listing on github..&lt;/p&gt;
&lt;p&gt;And now after being corrected I see that it's the build dependency on depstar in my &lt;code&gt;deps.edn&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:aliases
 {:depstar
  {:replace-deps
   {com.github.seancorfield/depstar {:mvn/version &quot;2.1.303&quot;}}
   :ns-default hf.depstar
   :exec-args {}}}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;which depends on log4j.&lt;/p&gt;
&lt;p&gt;Thanks guys for helping me out.&lt;/p&gt;
&lt;p&gt;Edit: formatting&lt;/p&gt;
</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/11383/please-update-log4j?show=11393#a11393</guid>
<pubDate>Mon, 13 Dec 2021 15:07:24 +0000</pubDate>
</item>
<item>
<title>Answered: java.data should support creating Properties from a map</title>
<link>https://ask.clojure.org/index.php/11163/java-data-should-support-creating-properties-from-a-map?show=11164#a11164</link>
<description>&lt;p&gt;Great idea!&lt;/p&gt;
&lt;p&gt;Created in Jira as &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojure.atlassian.net/browse/JDATA-22&quot;&gt;https://clojure.atlassian.net/browse/JDATA-22&lt;/a&gt; -- will update this post when it is implemented.&lt;/p&gt;
</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/11163/java-data-should-support-creating-properties-from-a-map?show=11164#a11164</guid>
<pubDate>Wed, 13 Oct 2021 22:43:42 +0000</pubDate>
</item>
<item>
<title>Answered: from-java does not convert Boolean to clojure keyword</title>
<link>https://ask.clojure.org/index.php/7182/from-java-does-not-convert-boolean-to-clojure-keyword?show=7193#a7193</link>
<description>Reference: &lt;a href=&quot;https://clojure.atlassian.net/browse/JDATA-9&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://clojure.atlassian.net/browse/JDATA-9&lt;/a&gt; (reported by )</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/7182/from-java-does-not-convert-boolean-to-clojure-keyword?show=7193#a7193</guid>
<pubDate>Wed, 26 Jun 2019 12:00:00 +0000</pubDate>
</item>
<item>
<title>Answered: Handle primitive types and arrays</title>
<link>https://ask.clojure.org/index.php/7177/handle-primitive-types-and-arrays?show=7186#a7186</link>
<description>Reference: &lt;a href=&quot;https://clojure.atlassian.net/browse/JDATA-1&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://clojure.atlassian.net/browse/JDATA-1&lt;/a&gt; (reported by bendlas)</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/7177/handle-primitive-types-and-arrays?show=7186#a7186</guid>
<pubDate>Wed, 26 Jun 2019 12:00:00 +0000</pubDate>
</item>
<item>
<title>Answered: Simplify use cases / split up to-java</title>
<link>https://ask.clojure.org/index.php/7178/simplify-use-cases-split-up-to-java?show=7189#a7189</link>
<description>Reference: &lt;a href=&quot;https://clojure.atlassian.net/browse/JDATA-3&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://clojure.atlassian.net/browse/JDATA-3&lt;/a&gt; (reported by bendlas)</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/7178/simplify-use-cases-split-up-to-java?show=7189#a7189</guid>
<pubDate>Wed, 26 Jun 2019 12:00:00 +0000</pubDate>
</item>
<item>
<title>Answered: to-java not working on some setters</title>
<link>https://ask.clojure.org/index.php/7179/to-java-not-working-on-some-setters?show=7190#a7190</link>
<description>Reference: &lt;a href=&quot;https://clojure.atlassian.net/browse/JDATA-4&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://clojure.atlassian.net/browse/JDATA-4&lt;/a&gt; (reported by )</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/7179/to-java-not-working-on-some-setters?show=7190#a7190</guid>
<pubDate>Wed, 26 Jun 2019 12:00:00 +0000</pubDate>
</item>
<item>
<title>Answered: to-java not working when setter takes Map as parameter</title>
<link>https://ask.clojure.org/index.php/7180/to-java-not-working-when-setter-takes-map-as-parameter?show=7191#a7191</link>
<description>Reference: &lt;a href=&quot;https://clojure.atlassian.net/browse/JDATA-6&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://clojure.atlassian.net/browse/JDATA-6&lt;/a&gt; (reported by )</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/7180/to-java-not-working-when-setter-takes-map-as-parameter?show=7191#a7191</guid>
<pubDate>Wed, 26 Jun 2019 12:00:00 +0000</pubDate>
</item>
<item>
<title>Answered: incorrect org.clojure/java.data convert java.util.Date use getter and setter</title>
<link>https://ask.clojure.org/index.php/7181/incorrect-clojure-java-data-convert-java-util-getter-setter?show=7192#a7192</link>
<description>Reference: &lt;a href=&quot;https://clojure.atlassian.net/browse/JDATA-8&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://clojure.atlassian.net/browse/JDATA-8&lt;/a&gt; (reported by )</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/7181/incorrect-clojure-java-data-convert-java-util-getter-setter?show=7192#a7192</guid>
<pubDate>Wed, 26 Jun 2019 12:00:00 +0000</pubDate>
</item>
<item>
<title>Answered: java.util.Date should not be converted</title>
<link>https://ask.clojure.org/index.php/7183/java-util-date-should-not-be-converted?show=7194#a7194</link>
<description>Reference: &lt;a href=&quot;https://clojure.atlassian.net/browse/JDATA-11&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://clojure.atlassian.net/browse/JDATA-11&lt;/a&gt; (reported by )</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/7183/java-util-date-should-not-be-converted?show=7194#a7194</guid>
<pubDate>Wed, 26 Jun 2019 12:00:00 +0000</pubDate>
</item>
<item>
<title>Answered: Translate - into camel casing in to-java</title>
<link>https://ask.clojure.org/index.php/7185/translate-into-camel-casing-in-to-java?show=7204#a7204</link>
<description>Reference: &lt;a href=&quot;https://clojure.atlassian.net/browse/JDATA-5&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://clojure.atlassian.net/browse/JDATA-5&lt;/a&gt; (reported by )</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/7185/translate-into-camel-casing-in-to-java?show=7204#a7204</guid>
<pubDate>Wed, 26 Jun 2019 12:00:00 +0000</pubDate>
</item>
<item>
<title>Answered: from-java on an object with Boolean attribute = false returns &quot;bad&quot; Booleans</title>
<link>https://ask.clojure.org/index.php/7184/from-java-object-boolean-attribute-false-returns-booleans?show=7197#a7197</link>
<description>Reference: &lt;a href=&quot;https://clojure.atlassian.net/browse/JDATA-10&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://clojure.atlassian.net/browse/JDATA-10&lt;/a&gt; (reported by )</description>
<category>java.data</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/7184/from-java-object-boolean-attribute-false-returns-booleans?show=7197#a7197</guid>
<pubDate>Wed, 26 Jun 2019 12:00:00 +0000</pubDate>
</item>
</channel>
</rss>