java-gobject-introspection r17 - trunk/src/org/gnome/gir/compiler
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: java-gobject-introspection r17 - trunk/src/org/gnome/gir/compiler
- Date: Tue, 2 Sep 2008 21:12:41 +0000 (UTC)
Author: walters
Date: Tue Sep 2 21:12:41 2008
New Revision: 17
URL: http://svn.gnome.org/viewvc/java-gobject-introspection?rev=17&view=rev
Log:
Fix up static constructor signature
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 Tue Sep 2 21:12:41 2008
@@ -752,11 +752,13 @@
ArgInfo[] argInfos = fi.getArgs();
List<Type> args = getCallableArgs(fi, false, false);
- String descriptor = Type.getMethodDescriptor(Type.VOID_TYPE, args.toArray(new Type[0]));
+ String descriptor = Type.getMethodDescriptor(typeFromInfo(info), args.toArray(new Type[0]));
int nArgs = args.size();
String name = ucaseToCamel(fi.getName());
+ if (name.equals("new"))
+ name = "newDefault";
MethodVisitor mv = compilation.writer.visitMethod(ACC_PUBLIC + ACC_STATIC + ACC_FINAL, name, descriptor, null, null);
mv.visitCode();
Label l0 = new Label();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]