java-gobject-introspection r93 - trunk/src/org/gnome/gir/compiler
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: java-gobject-introspection r93 - trunk/src/org/gnome/gir/compiler
- Date: Mon, 20 Oct 2008 03:37:21 +0000 (UTC)
Author: walters
Date: Mon Oct 20 03:37:21 2008
New Revision: 93
URL: http://svn.gnome.org/viewvc/java-gobject-introspection?rev=93&view=rev
Log:
Use correct type signature for setter invocation
Modified:
trunk/src/org/gnome/gir/compiler/CodeFactory.java
Modified: trunk/src/org/gnome/gir/compiler/CodeFactory.java
==============================================================================
--- trunk/src/org/gnome/gir/compiler/CodeFactory.java (original)
+++ trunk/src/org/gnome/gir/compiler/CodeFactory.java Mon Oct 20 03:37:21 2008
@@ -114,6 +114,7 @@
import com.sun.jna.Function;
import com.sun.jna.Native;
+import com.sun.jna.NativeMapped;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.ByteByReference;
import com.sun.jna.ptr.DoubleByReference;
@@ -579,7 +580,8 @@
private void compile(EnumInfo info) {
ClassCompilation compilation = getCompilation(info);
compilation.writer.visit(V1_6, ACC_PUBLIC + ACC_FINAL + ACC_SUPER + ACC_ENUM, compilation.internalName,
- "Ljava/lang/Enum<L" + compilation.internalName + ";>;", "java/lang/Enum", null);
+ "Ljava/lang/Enum<L" + compilation.internalName + ";>;", "java/lang/Enum",
+ null);
ValueInfo[] values = info.getValueInfo();
for (ValueInfo valueInfo : values) {
String name = enumNameToUpper(info.getName(), valueInfo.getName());
@@ -1117,7 +1119,7 @@
mv.visitMethodInsn(INVOKESTATIC, propTypeBox.getInternalName(), "valueOf", "("
+ type.getDescriptor() + ")" + propTypeBox.getDescriptor());
mv.visitMethodInsn(INVOKEVIRTUAL, compilation.internalName, "set",
- "(Ljava/lang/String;Ljava/lang/Object;)" + type.getDescriptor());
+ Type.getMethodDescriptor(Type.VOID_TYPE, new Type[] { getType(String.class), getType(Object.class) }));
mv.visitInsn(RETURN);
Label l1 = new Label();
mv.visitLabel(l1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]