Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't make an EnumMap? #159

Closed
benson-basis opened this issue Apr 30, 2015 · 2 comments · Fixed by #160
Closed

Can't make an EnumMap? #159

benson-basis opened this issue Apr 30, 2015 · 2 comments · Fixed by #160

Comments

@benson-basis
Copy link
Contributor

EnumMap = autoclass('java.util.EnumMap')
SomeEnum = autoclass('my.enum.class')
map = EnumMap(SomeEnum)

fails due to a lack of a suitable ctor.
@kived
Copy link
Contributor

kived commented Apr 30, 2015

Try accessing the property from the autoclass itself, i.e.:

SomeEnum = autoclass('my.enum')
map = EnumMap(SomeEnum.class)

@benson-basis
Copy link
Contributor Author

That's invalid python syntax. You can't write '.class' on the end of it. Maybe .javaclass would work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants