bartdag/py4j — Issue #98: Java Enum Support
Author: gdw2
Created: 2012-02-03 21:02:33+00:00
State: open

I have a hard time believing that this isn't user error on my part, but I can't seem to access enum 'members' with py4j.

Example (something like...):

class MyClass
{
public enum MyEnum
{ FOO; }
}

Python:

gateway.MyClass.MyEnum.FOO

I'm getting:

Traceback (most recent call last):
File "", line 1, in
AttributeError: 'JavaMember' object has no attribute 'FOO'

Of course, this example is contrived, but I tried to make it mirror my real situation.