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)
This commit is contained in:
@@ -192,7 +192,7 @@ def _jdbc_connect_jpype(jclassname, url, driver_args, jars, libs):
|
|||||||
types = jpype.java.sql.Types
|
types = jpype.java.sql.Types
|
||||||
types_map = {}
|
types_map = {}
|
||||||
for i in types.__javaclass__.getClassFields():
|
for i in types.__javaclass__.getClassFields():
|
||||||
types_map[i.getName()] = i.getStaticAttribute()
|
types_map[i.getName()] = i.__get__(i)
|
||||||
_init_types(types_map)
|
_init_types(types_map)
|
||||||
global _java_array_byte
|
global _java_array_byte
|
||||||
if _java_array_byte is None:
|
if _java_array_byte is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user