Access to protected or private members?

19 views
Skip to first unread message

Tom

unread,
Dec 22, 2022, 4:00:34 PM12/22/22
to Py4J Support and Comments
Hello folks, 
Is it possible to access Java protected or private fields, methods or classes from Python? 
Maybe after invoking setAccessible(true)? 
I hope not, because this would ruin the security of my Java application.

Jonah Graham

unread,
Dec 22, 2022, 5:25:17 PM12/22/22
to py...@py4j.org
Short answer is yes it is possible. 

Jonah

--
You received this message because you are subscribed to the Google Groups "Py4J Support and Comments" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4j+uns...@py4j.org.
To view this discussion on the web visit https://groups.google.com/a/py4j.org/d/msgid/py4j/2713333c-ae6b-4ca0-b207-9c8aeac8b7bdn%40py4j.org.
--
~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com
Reply all
Reply to author
Forward
0 new messages