Aladdin - Scala Bugtracking
[#969] project: compiler priority: low category: bug
submitter assigned to status date submitted
Iulian Iulian fixed 2007-02-27 09:02:56.0
subject BeanProperty attribute/annotation dillema
code
import reflect._
class A {
  @BeanProperty
  var age = 10
}
what happened
beanprop.scala:3: error: type mismatch;
 found   : scala.reflect.BeanProperty
 required: scala.Annotation
  @BeanProperty
   ^
what expected The SVN version (and the internal release) have this behavior. I changed BeanProperty to be extend Annotation and it works now (including getter/setter generation). I just wanted Martin to review this change, since the attributes have changed signifficantly in the latest release (candidate).
[back to overview]
Changes of this bug report