I have defined the class A in Scala:
class A(var number: Int)
But when I try to access its member field number in java, I get an error:
A a = new A();
a.number = 4;
Results in: java: number has private access in A.
If I try to access the number from scala, there is no problem.
What can I do to get around this issue?