-
Notifications
You must be signed in to change notification settings - Fork 20
Static variable improvements #197
Copy link
Copy link
Open
Description
package com.example;
public class MyClass {
public static final int FOO = 1;
public static int BAR = 2;
}jpy currently only maps final static variables for getting; we should be able to get static variables that are not final.
jpy currently does not allow setting static variables. (Easy to see there are no calls in this code base to SetStaticField Routines)
import jpy
_JMyClass = jpy.get_type("com.example.MyClass")
# works
foo = _JMyClass.FOO
# does not work
bar = _JMyClass.BAR
# does not work
_JMyClass.BAR = 42Related to #191
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels