Bad code green

One of the standard Scala classes is the annotation
scala.beans.BeanProperty, and apparently this annotation requires that
the field it is applied to must be non-private. So I was porting some
Java code over to Scala and put a @BeanProperty annotation in. IDEA's
Scala plugin was fine with it, but I got a compile error:

error: `BeanProperty' annotation can be applied only to non-private fields

The syntax checker should be catching this, right?

1 comment
Comment actions Permalink

I've created an issue for that: SCL-6168, thank you for the good suggestion.


Please sign in to leave a comment.