We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have tried to implement the example of https://pyjnius.readthedocs.io/en/stable/api.html#jnius.JavaField
class System(JavaClass): __javaclass__ = 'java/lang/System' out = JavaField('()Ljava/io/InputStream;', static=True)
If I then do System().out, I get:
System().out
test_export_class.py:31: E AttributeError: 'System' object has no attribute '__cls_storage'
If I then do System.out, I get:
System.out
jnius/jnius_export_class.pxi:455: in jnius.JavaField.__get__ E TypeError: expected bytes, NoneType found
Do you want a PR with a unit test?
The text was updated successfully, but these errors were encountered:
@cmacdonald This would be the Signature for System Class.
public static final java.io.PrintStream out; descriptor: Ljava/io/PrintStream;
Please try to use,
System = autoclass("java.lang.System") class CustomSystem(System): __javaclass__ = "java/lang/System" print(CustomSystem.out)
Sorry, something went wrong.
No branches or pull requests
I have tried to implement the example of https://pyjnius.readthedocs.io/en/stable/api.html#jnius.JavaField
If I then do
System().out
, I get:If I then do
System.out
, I get:Do you want a PR with a unit test?
The text was updated successfully, but these errors were encountered: