This is an automated email from the git hooks/post-receive script. New commit to annotated tag v2.0.0-beta-2 in repository jaxx. See https://gitlab.nuiton.org/nuiton/jaxx.git commit 54f69e81077e24a6e497b2a48a6ff4ad3f5b7838 Author: Tony Chemit <chemit@codelutin.com> Date: Fri Nov 27 01:29:37 2009 +0000 - This MUST be a convention in JAXX : all specialized constructor must a second constructor with extra first parameter as parentContext - add toString of FieldDescriptor --- .../jaxx/compiler/finalizers/DefaultFinalizer.java | 18 ++++----- .../jaxx/compiler/reflect/FieldDescriptor.java | 45 ++++++++++++---------- 2 files changed, 34 insertions(+), 29 deletions(-) diff --git a/jaxx-compiler/src/main/java/jaxx/compiler/finalizers/DefaultFinalizer.java b/jaxx-compiler/src/main/java/jaxx/compiler/finalizers/DefaultFinalizer.java index 6646eaf..28ab6f5 100644 --- a/jaxx-compiler/src/main/java/jaxx/compiler/finalizers/DefaultFinalizer.java +++ b/jaxx-compiler/src/main/java/jaxx/compiler/finalizers/DefaultFinalizer.java @@ -20,17 +20,14 @@ */ package jaxx.compiler.finalizers; -import jaxx.compiler.JAXXCompilerFinalizer; -import jaxx.compiler.CompilerException; -import jaxx.compiler.CompiledObject; -import jaxx.compiler.CompiledObjectDecorator; +import jaxx.compiler.*; import jaxx.compiler.binding.DataBinding; -import jaxx.compiler.EventHandler; -import jaxx.compiler.JAXXCompiler; -import jaxx.compiler.java.JavaMethod; import jaxx.compiler.java.JavaArgument; import jaxx.compiler.java.JavaField; import jaxx.compiler.java.JavaFile; +import static jaxx.compiler.java.JavaFileGenerator.newField; +import static jaxx.compiler.java.JavaFileGenerator.newMethod; +import jaxx.compiler.java.JavaMethod; import jaxx.compiler.reflect.ClassDescriptor; import jaxx.compiler.reflect.ClassDescriptorLoader; import jaxx.compiler.reflect.FieldDescriptor; @@ -45,8 +42,6 @@ import java.util.Iterator; import java.util.List; import java.util.Map; -import static jaxx.compiler.java.JavaFileGenerator.*; - /** * This class is a refactoring of the {@link jaxx.compiler.JAXXCompiler}. * <p/> @@ -525,6 +520,11 @@ public class DefaultFinalizer implements JAXXCompilerFinalizer { String constructorParams = compiler.getRootObject().getConstructorParams(); String eol = JAXXCompiler.getLineSeparator(); if (constructorParams != null) { + if (superclassIsJAXXObject) { + //TODO-TC20091127 This MUST be a convention in JAXX : all specialized constructor must a second + //TODO constructor with extra first parameter as parentContext + constructorParams = "parentContext, " + constructorParams; + } code.append(" super(").append(constructorParams).append(");").append(eol); } else { if (superclassIsJAXXObject) { diff --git a/jaxx-compiler/src/main/java/jaxx/compiler/reflect/FieldDescriptor.java b/jaxx-compiler/src/main/java/jaxx/compiler/reflect/FieldDescriptor.java index e066836..1dedb31 100644 --- a/jaxx-compiler/src/main/java/jaxx/compiler/reflect/FieldDescriptor.java +++ b/jaxx-compiler/src/main/java/jaxx/compiler/reflect/FieldDescriptor.java @@ -1,23 +1,23 @@ -/* - * *##% - * JAXX Compiler - * Copyright (C) 2008 - 2009 CodeLutin - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. - * ##%* - */ +/* + * *##% + * JAXX Compiler + * Copyright (C) 2008 - 2009 CodeLutin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * ##%* + */ package jaxx.compiler.reflect; /** @@ -42,4 +42,9 @@ public class FieldDescriptor extends MemberDescriptor { throw new RuntimeException(e); } } + + @Override + public String toString() { + return super.toString() + " type : [" + type + "]"; + } } -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.