Re: An Annotation within an Annotation

2017-11-01 Thread Justin Smith
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

Re: An Annotation within an Annotation

2017-11-01 Thread Jan Stavel
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

An Annotation within an Annotation

2017-11-01 Thread Jan Stavel
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