pyjnius: superclass methods not accessible in 1.2.1
arraylist = autoclass("java.util.ArrayList")()
arraylist.iterator()
arraylist.stream()
This works for 1.2.0 but not for 1.2.1.
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-7-5e67e1c90388> in <module>()
----> 1 arraylist.stream()
AttributeError: 'java.util.ArrayList' object has no attribute 'stream'
Reproducible notebook at https://colab.research.google.com/drive/1F9u2jVQR5JFw_mk5Bq--VH1Ki91Xe5x3
stream() is defined in the super-interface as a default.
We also had problem accessing methods in interfaces that extended java.util.List.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 20 (17 by maintainers)
Commits related to this issue
- add regression tests, start with #465 — committed to kivy/pyjnius by tshirtman 5 years ago
- Pin to pyjnius 1.2.0 This works around https://github.com/kivy/pyjnius/issues/465. — committed to imagej/pyimagej by imagejan 4 years ago
- Release 1.3.0 Full Changelog: https://github.com/kivy/pyjnius/compare/1.2.1...1.3.0 Implemented enhancements: - (https://github.com/kivy/pyjnius/pull/483)/(https://github.com/kivy/pyjnius/pull/489) ... — committed to kivy/pyjnius by tshirtman 4 years ago
I observe the same problem, superclass methods are not accessible in 1.2.1 but everything works in 1.2.0. This is quite nasty bug, don’t you think it make sense to remove 1.2.1 release or somehow mark it as unusable ?
I had wondered if this was a concurrency issue as per #480, but I don’t think pytest is concurrent by default.
I tried reproducing locally, but didn’t succeed in reproducing #480. Here was my command - its a Debian-based image:
All tests passed on master and on the branch.