Re: An Annotation within an Annotation
when you use ^{}, that applies metadata to the next form. In the highlighted code, you are trying to put metadata on the keyword :component - perhaps the ^TestType metadata should go on the hash-map on that line instead of turning the whole hash-map into metadata ? On Wed, Nov 1, 2017 at 7:37 AM Jan Stavel wrote: > Hello, > I have forgetten an error that 'lein compile' gives. > > > java.lang.IllegalArgumentException: Metadata can only be applied to > IMetas, compiling:(rhsm/cockpit/tests/register_tests.clj:88:35) > Exception in thread "main" java.lang.IllegalArgumentException: Metadata > can only be applied to IMetas, > compiling:(rhsm/cockpit/tests/register_tests.clj:88:35) > > > Have a good day, > Jan Stavel > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > 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 clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: An Annotation within an Annotation
Hello, I have forgetten an error that 'lein compile' gives. java.lang.IllegalArgumentException: Metadata can only be applied to IMetas, compiling:(rhsm/cockpit/tests/register_tests.clj:88:35) Exception in thread "main" java.lang.IllegalArgumentException: Metadata can only be applied to IMetas, compiling:(rhsm/cockpit/tests/register_tests.clj:88:35) Have a good day, Jan Stavel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
An Annotation within an Annotation
Hello everybody, I am trying to annotate a method in clojure where annotation type is made up of nested annotations. Example of similar java code: https://github.com/jstavel/rhsm-qe/blob/polarion-annotations/src/rhsm/cli/tests/ContentTests.java#L66 I want to do the same in clojure. This is my attempt to do that: https://github.com/jstavel/rhsm-qe/blob/polarion-annotations/src/rhsm/cockpit/tests/register_tests.clj#L87 A definition of the TestType interface: https://github.com/RedHatQE/polarize/blob/master/src/main/java/com/github/redhatqe/polarize/metadata/TestType.java#L11 Any hint welcome. Have a good day, Jan Stavel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.