title: Array of annotations as parameter to an annotation, in Scala
body: <p>There are plenty of questions about passing an array as a parameter to an annotation, this is not a dupe of those.</p>
  
  <p>I would like to use a Java-land annotation that takes an <strong>array of annotations</strong> as a parameter, e.g.</p>
  
  <pre><code>@ManagedOperation
  @ManagedOperationParameters({
    @ManagedOperationParameter(name="start"),
    @ManagedOperationParameter(name="end")
  })
  def stuff(start: String, end: String): Unit = ???
  </code></pre>
  
  <p>But this is not valid syntax in Scala, nor is</p>
  
  <pre><code>@ManagedOperation
  @ManagedOperationParameters(Array(
    @ManagedOperationParameter(name="start"),
    @ManagedOperationParameter(name="end")
  ))
  def stuff(start: String, end: String): Unit = ???
  </code></pre>
  
  <p>so what is the correct way to do this, if it is even possible?</p>
  
  <p>BTW, I even <a href="https://github.com/search?utf8=%E2%9C%93&amp;q=ManagedOperationParameters+extension%3Ascala&amp;type=Code&amp;ref=advsearch&amp;l=">checked all of github</a> to see if any Scala devs are using this (Spring JMX) annotation.</p>