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



Author: walters
Date: Sat Feb  7 03:56:59 2009
New Revision: 174
URL: http://svn.gnome.org/viewvc/java-gobject-introspection?rev=174&view=rev

Log:
Rename global static "new" methods to "new_".

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	Sat Feb  7 03:56:59 2009
@@ -1360,6 +1360,9 @@
 			CallableCompilationContext ctx) {
 		String descriptor = ctx.getDescriptor();
 		String name = ctx.name;
+		// This can happen in static global case, handle it specially
+		if (name.equals("new"))
+			name = "new_";
 
 		String[] exceptions = null;
 		if (ctx.throwsGError) {



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