Open GoogleCodeExporter opened 9 years ago
This same example works correctly when linked with bsh-2.0b4.jar
Original comment by ddyer-go...@real-me.net
on 27 Mar 2014 at 12:20
So "players_in_game" is defined as "private" and "tempCell" is defined as
"public"?
What do you see without calling "setAccessibility(true)" or when calling
"setAccessibility(false)"?
Original comment by pejob...@gmail.com
on 27 Mar 2014 at 8:52
>>So "players_in_game" is defined as "private" and "tempCell" is defined as
"public"?
Correct.
What do you see without calling "setAccessibility(true)" or when calling
"setAccessibility(false)"?
No difference.
Original comment by ddyer-go...@real-me.net
on 27 Mar 2014 at 4:40
I found another relevant bit of information. The class of "board" has
unspecified access. If I change it to public, then the access works.
Perhaps someone used to wrangling java reflection can explain that!
that is, the declaration for the class of the board object is
class OnedayBoard extends RBoard<OnedayCell> implements
BoardProtocol,OnedayConstants
and making it
public class OnedayBoard extends RBoard<OnedayCell> implements
BoardProtocol,OnedayConstants
fixes the problem.
Original comment by ddyer-go...@real-me.net
on 27 Mar 2014 at 6:42
Ah, with this bit I can reproduce the behavior. My test class looks now like
this:
class Board {
public int tempCell = 13;
private int players_in_game = 42;
}
Original comment by pejob...@gmail.com
on 2 Apr 2014 at 9:51
Original comment by pejob...@gmail.com
on 2 Apr 2014 at 9:51
Original issue reported on code.google.com by
ddyer-go...@real-me.net
on 27 Mar 2014 at 12:08