Fixed incompatibility with JPype1 v0.7.0

* replaced call to deleted method getStaticAttribute with call to __get__
* added parameter convertStrings=True to mimic old default behaviour of JPype1 see [docs](https://jpype.readthedocs.io/en/latest/api.html#jpype.startJVM)
master
Артем Старченко 2019-06-25 16:45:45 +03:00 committed by baztian
parent 3e6e2484f0
commit 12d8ee4d4a
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ def _jdbc_connect_jpype(jclassname, url, driver_args, jars, libs):
types = jpype.java.sql.Types
types_map = {}
for i in types.__javaclass__.getClassFields():
types_map[i.getName()] = i.getStaticAttribute()
types_map[i.getName()] = i.__get__(i)
_init_types(types_map)
global _java_array_byte
if _java_array_byte is None: