Visibility of properties in scala class
I defined a property in the constructor of my class the following way: class Step(val message:String = "") When I try access to message value from Java code y get a visbility error. Why? If you add the @scala.reflect.BeanProperty annontation you get "automatic" get and set methods See http://www.scala-lang.org/docu/files/api/scala/reflect/BeanProperty.html scala> class Step(@scala.reflect.BeanProperty val message:String ) defined class Step scala> val s = new Step("asdf") s: Step = Step@71e13a2c scala> s.message res6: String = asdf scala> s.getMessage res10: String = asdf The code is correct,