Skip to content

Commit c004971

Browse files
authored
Merge pull request scala/scala#10918 from SethTisue/issue-12870
Document invisibility of `BeanProperty` methods from Scala 3
2 parents 03b265b + 449a7c5 commit c004971

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/src/scala/beans/BeanProperty.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ import scala.annotation.meta.{beanGetter, beanSetter, field}
2727
* }}}
2828
* For fields of type `Boolean`, if you need a getter named `isStatus`,
2929
* use the `scala.beans.BooleanBeanProperty` annotation instead.
30+
*
31+
* In Scala 2, the added methods are visible from both Scala and Java.
32+
*
33+
* In Scala 3, that has changed. The added methods are only visible from
34+
* Java (including via Java reflection).
3035
*/
3136
@field @beanGetter @beanSetter
3237
@deprecatedInheritance("Scheduled for being final in the future", "2.13.0")

0 commit comments

Comments
 (0)