When creating a Scala documentation I also use the @throws
and @note
tags like documented here (Scaladoc Wiki - Tags and Annotations).
Unfortunately I can't find these in the generated Scaladoc.
Do one have to set certain switches, consider something specific or is this a known problem?
BTW: using the scaladoc
Ant task of Scala 2.9.0.1 that issues no warning too.
EDIT: BTW2 and to clarify: I do not mean the @throws
annotation
@throws(classOf[RuntimeException])
def dispatch: Nothing = throw new RuntimeException
which is documented in the annotations section of this def
but the @throws
tag for Scaladoc like
/** @throws RuntimeException
*/
def dispatch: Nothing = throw new RuntimeException
This is a combination of a bug and something that hasn't made it into a release yet.
@note does not work, this is a known bug, see @todo, @note and @example don't work?
@throws was only added recently, see this pull request from Simon Ochsenreither, which was merged in July 2011. This hasn't yet made it into a release, 2.9.0.1 was released in May 2011, and 2.9.1 was started in July 2011.
I added support for @note
half a year ago.
If you have a look here, it seems to work correctly: scala.util.matching.Regex
The other things is the @throws
ScalaDoc tag. Actually I'm thinking about removing support for it in favor of the @throws
annotation, which is supported, because I can't see any use case where one would prefer the ScalaDoc tag to the annotation.
If you have a real need please let me no, let me know!
Edit: Mhhh. Looking at scala.Array it actually looks like it is the other way around...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With