java-gobject-introspection r96 - trunk/src/org/gnome/gir/compiler



Author: walters
Date: Tue Oct 21 02:49:31 2008
New Revision: 96
URL: http://svn.gnome.org/viewvc/java-gobject-introspection?rev=96&view=rev

Log:
Write out property getters first; we always know their transfer


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 Oct 21 02:49:31 2008
@@ -1274,8 +1274,15 @@
 			}
 		}
 		
-		// Now do methods
-		Set<String> sigs = new HashSet<String>();		
+		Set<String> sigs = new HashSet<String>();
+		
+		// Write out property getters and setters - we do this before methods
+		// because we want them to override any extant getters or setters with
+		// unknown transfer properties
+		writeProperties(compilation, Type.getObjectType(compilation.internalName),
+				info.getProperties(), sigs, false, false);		
+		
+		// Now do methods		
 		for (FunctionInfo fi : info.getMethods()) {	
 			if (GOBJECT_METHOD_BLACKLIST.contains(fi.getName()))
 				continue;
@@ -1308,9 +1315,6 @@
 					false, true);
 		}
 		
-		writeProperties(compilation, Type.getObjectType(compilation.internalName),
-				info.getProperties(), sigs, false, false);
-		
 		compilation.close();	
 	}
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]