mirror of https://github.com/kivy/pyjnius.git
Fix JVM signatures for the java.lang.Class method.
The methods defined in the Class class contain semicolons at the end of the signatures for methods which return primitives, while these are only required after class names. As a result, a JVM error occurs when attempting to call any of the affected methods.
This commit is contained in:
parent
5fb4667c18
commit
f0b8ce3856
|
@ -10,7 +10,7 @@ class Class(JavaClass):
|
||||||
__metaclass__ = MetaJavaClass
|
__metaclass__ = MetaJavaClass
|
||||||
__javaclass__ = 'java/lang/Class'
|
__javaclass__ = 'java/lang/Class'
|
||||||
|
|
||||||
desiredAssertionStatus = JavaMethod('()Z;')
|
desiredAssertionStatus = JavaMethod('()Z')
|
||||||
forName = JavaMultipleMethod([
|
forName = JavaMultipleMethod([
|
||||||
('(Ljava/lang/String,Z,Ljava/lang/ClassLoader;)Ljava/langClass;', True, False),
|
('(Ljava/lang/String,Z,Ljava/lang/ClassLoader;)Ljava/langClass;', True, False),
|
||||||
('(Ljava/lang/String;)Ljava/lang/Class;', True, False), ])
|
('(Ljava/lang/String;)Ljava/lang/Class;', True, False), ])
|
||||||
|
@ -32,7 +32,7 @@ class Class(JavaClass):
|
||||||
getInterfaces = JavaMethod('()[Ljava/lang/Class;')
|
getInterfaces = JavaMethod('()[Ljava/lang/Class;')
|
||||||
getMethod = JavaMethod('(Ljava/lang/String,[Ljava/lang/Class;)Ljava/lang/reflect/Method;')
|
getMethod = JavaMethod('(Ljava/lang/String,[Ljava/lang/Class;)Ljava/lang/reflect/Method;')
|
||||||
getMethods = JavaMethod('()[Ljava/lang/reflect/Method;')
|
getMethods = JavaMethod('()[Ljava/lang/reflect/Method;')
|
||||||
getModifiers = JavaMethod('()[I;')
|
getModifiers = JavaMethod('()[I')
|
||||||
getName = JavaMethod('()Ljava/lang/String;')
|
getName = JavaMethod('()Ljava/lang/String;')
|
||||||
getPackage = JavaMethod('()Ljava/lang/Package;')
|
getPackage = JavaMethod('()Ljava/lang/Package;')
|
||||||
getProtectionDomain = JavaMethod('()Ljava/security/ProtectionDomain;')
|
getProtectionDomain = JavaMethod('()Ljava/security/ProtectionDomain;')
|
||||||
|
@ -40,11 +40,11 @@ class Class(JavaClass):
|
||||||
getResourceAsStream = JavaMethod('(Ljava/lang/String;)Ljava/io/InputStream;')
|
getResourceAsStream = JavaMethod('(Ljava/lang/String;)Ljava/io/InputStream;')
|
||||||
getSigners = JavaMethod('()[Ljava/lang/Object;')
|
getSigners = JavaMethod('()[Ljava/lang/Object;')
|
||||||
getSuperclass = JavaMethod('()Ljava/lang/reflect/Class;')
|
getSuperclass = JavaMethod('()Ljava/lang/reflect/Class;')
|
||||||
isArray = JavaMethod('()Z;')
|
isArray = JavaMethod('()Z')
|
||||||
isAssignableFrom = JavaMethod('(Ljava/lang/reflect/Class;)Z;')
|
isAssignableFrom = JavaMethod('(Ljava/lang/reflect/Class;)Z')
|
||||||
isInstance = JavaMethod('(Ljava/lang/Object;)Z;')
|
isInstance = JavaMethod('(Ljava/lang/Object;)Z')
|
||||||
isInterface = JavaMethod('()Z;')
|
isInterface = JavaMethod('()Z')
|
||||||
isPrimitive = JavaMethod('()Z;')
|
isPrimitive = JavaMethod('()Z')
|
||||||
newInstance = JavaMethod('()Ljava/lang/Object;')
|
newInstance = JavaMethod('()Ljava/lang/Object;')
|
||||||
toString = JavaMethod('()Ljava/lang/String;')
|
toString = JavaMethod('()Ljava/lang/String;')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue