diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-09-10 23:25:40 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-09-11 00:19:05 +0200 |
commit | 028de5d78225d3eb4d41d87bdbe56b7631ef76d1 (patch) | |
tree | a6d847d01d41347c2af488d3b4f5564415a2ab2e /src/library | |
parent | c78fe024711925c40f9fc15221ea04a6f99a5691 (diff) | |
download | scala-028de5d78225d3eb4d41d87bdbe56b7631ef76d1.tar.gz scala-028de5d78225d3eb4d41d87bdbe56b7631ef76d1.tar.bz2 scala-028de5d78225d3eb4d41d87bdbe56b7631ef76d1.zip |
Rescues @deprecated{Inheritance, Overriding}
While they ought to be generalized to aribirary modifier
changes before being offered in the standard library, the
opportunity to use them in 2.10 is too important to pass up.
So for now, they're private[scala].
En route:
- made the error messages more concise
- fix positioning of inheritance error
- improve test coverage
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/deprecatedInheritance.scala | 4 | ||||
-rw-r--r-- | src/library/scala/deprecatedOverriding.scala | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/library/scala/deprecatedInheritance.scala b/src/library/scala/deprecatedInheritance.scala index c461f6737c..4dd847c7b2 100644 --- a/src/library/scala/deprecatedInheritance.scala +++ b/src/library/scala/deprecatedInheritance.scala @@ -16,5 +16,7 @@ package scala * @param message the message to print during compilation if the class was sub-classed * @param since a string identifying the first version in which inheritance was deprecated * @since 2.10 + * @see [[scala.deprecatedInheritance]] */ -class deprecatedInheritance(message: String = "", since: String = "") extends annotation.StaticAnnotation
\ No newline at end of file +private[scala] // for now, this needs to be generalized to communicate other modifier deltas +class deprecatedInheritance(message: String = "", since: String = "") extends annotation.StaticAnnotation diff --git a/src/library/scala/deprecatedOverriding.scala b/src/library/scala/deprecatedOverriding.scala index 9048d5d32d..566cb59431 100644 --- a/src/library/scala/deprecatedOverriding.scala +++ b/src/library/scala/deprecatedOverriding.scala @@ -15,5 +15,7 @@ package scala * @param message the message to print during compilation if the member was overridden * @param since a string identifying the first version in which overriding was deprecated * @since 2.10 + * @see [[scala.deprecatedInheritance]] */ -class deprecatedOverriding(message: String = "", since: String = "") extends annotation.StaticAnnotation
\ No newline at end of file +private[scala] // for the same reasons as deprecatedInheritance +class deprecatedOverriding(message: String = "", since: String = "") extends annotation.StaticAnnotation |