Thank you the patch works.
I though it would have made sense to just create a record directly from
Java since they can implement Java interfaces.
On Monday, April 15, 2013 7:57:28 PM UTC+2, Meikel Brandmeyer (kotarak)
wrote:
>
> Hi Pierre,
>
> does this patch work?
>
> ----8<--8<--8<----
> diff --git a/test/eu/markosproject/test/LicenseCheckerTest.java
> b/test/eu/markosproject/test/LicenseCheckerTest.java
> index 2e017cc..1a1cc82 100644
> --- a/test/eu/markosproject/test/LicenseCheckerTest.java
> +++ b/test/eu/markosproject/test/LicenseCheckerTest.java
> @@ -11,8 +11,12 @@ import
> eu.markosproject.commons.interfaces.licensing.ICheckerResultStorer;
> import eu.markosproject.commons.interfaces.licensing.IRNotification;
> import eu.markosproject.licensing.LicenseChecker;
>
> +import clojure.lang.RT;
>
> public class LicenseCheckerTest {
> + static {
> + RT.var("clojure.core", "require").invoke(RT.var("clojure.core",
> "symbol").invoke("eu.markosproject.licensing"));
> + }
>
> private final static Logger log =
> Logger.getLogger(LicenseCheckerTest.class .getName());
>
> ----8<--8<--8<----
>
> I'm not convinced that records are supposed to be created directly. (Ok.
> Testing. Maybe.) They should be an implementation detail returned by an
> API. If you need Java access there you might want to still go the Clojure
> route and provide Java access through a façade. cf. Rich Hickey's example
> of Datomic:
> http://skillsmatter.com/podcast/scala/impromptu-rich-hickey-lightning-talk
>
> Meikel
>
>
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.