Skip to content
Snippets Groups Projects
Commit 9a334d41 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/jni: Test for basic object operations.

parent 805c6534
No related branches found
No related tags found
No related merge requests found
import sys
import jni
try:
Integer = jni.cls("java/lang/Integer")
except:
print("SKIP")
sys.exit()
# Create object
i = Integer(42)
print(i)
# Call object method
print(i.hashCode())
# Pass object to another method
System = jni.cls("java/lang/System")
System.out.println(i)
42
42
42
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment