Message4057
public class Test {
public static int get_x() {
return x;
}
public static void set_x(int new_x) {
x = new_x;
}
public static int x = 0;
}
Jython 2.5b1+ (trunk:5944, Jan 18 2009, 00:35:11)
[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_07
Type "help", "copyright", "credits" or "license" for more information.
>>> import Test
>>> Test.x
0
>>> Test.set_x(3)
>>> Test.x
3
>>> Test.x = 5
>>> Test.x
5
>>> Test.get_x()
3
This worked fine in r5735, before the newstyle-java-types branch was merged. |
|
Date |
User |
Action |
Args |
2009-01-18 06:37:45 | nriley | set | recipients:
+ nriley, cgroves |
2009-01-18 06:37:45 | nriley | set | messageid: <1232260665.32.0.8036405875.issue1241@psf.upfronthosting.co.za> |
2009-01-18 06:37:45 | nriley | link | issue1241 messages |
2009-01-18 06:37:44 | nriley | create | |
|