Author: tchemit Date: 2011-03-02 10:46:21 +0100 (Wed, 02 Mar 2011) New Revision: 2238 Url: http://nuiton.org/repositories/revision/jaxx/2238 Log: pass to version 2.4.1-SNAPSHOT Anomalie #1377: Improve log in JXPathDecorator closes Modified: trunk/jaxx-compiler/pom.xml trunk/jaxx-demo/pom.xml trunk/jaxx-runtime/pom.xml trunk/jaxx-runtime/src/main/java/jaxx/runtime/decorator/JXPathDecorator.java trunk/jaxx-tutorial-config/pom.xml trunk/jaxx-tutorial-css/pom.xml trunk/jaxx-tutorial-databinding/pom.xml trunk/jaxx-tutorial-helloworld/pom.xml trunk/jaxx-tutorial-helloworld2/pom.xml trunk/jaxx-tutorial-validation/pom.xml trunk/jaxx-tutorial/pom.xml trunk/jaxx-validator/pom.xml trunk/jaxx-widgets/pom.xml trunk/maven-jaxx-plugin/pom.xml trunk/pom.xml Modified: trunk/jaxx-compiler/pom.xml =================================================================== --- trunk/jaxx-compiler/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/jaxx-compiler/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -34,7 +34,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>jaxx</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> </parent> <groupId>org.nuiton.jaxx</groupId> Modified: trunk/jaxx-demo/pom.xml =================================================================== --- trunk/jaxx-demo/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/jaxx-demo/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -35,7 +35,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>jaxx</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> </parent> <groupId>org.nuiton.jaxx</groupId> Modified: trunk/jaxx-runtime/pom.xml =================================================================== --- trunk/jaxx-runtime/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/jaxx-runtime/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -34,7 +34,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>jaxx</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> </parent> <groupId>org.nuiton.jaxx</groupId> Modified: trunk/jaxx-runtime/src/main/java/jaxx/runtime/decorator/JXPathDecorator.java =================================================================== --- trunk/jaxx-runtime/src/main/java/jaxx/runtime/decorator/JXPathDecorator.java 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/jaxx-runtime/src/main/java/jaxx/runtime/decorator/JXPathDecorator.java 2011-03-02 09:46:21 UTC (rev 2238) @@ -54,8 +54,8 @@ * assert "expr = %1$s" == d.toString(d); * </pre> * + * @param <O> type of data to decorate * @author tchemit <chemit@codelutin.com> - * @param <O> type of data to decorate * @see Decorator * @since 1.7.2 (was previously {@code jaxx.runtime.JXPathDecorator}) */ @@ -98,9 +98,12 @@ try { args[i] = getTokenValue(jxcontext, context.tokens[i]); } catch (Exception e) { - log.error("can not obtain token " + context.tokens[i] - + "on object " + bean + " for reason " + - e.getMessage(), e); + if (log.isErrorEnabled()) { + log.error("can not obtain token " + context.tokens[i] + + " on object of type " + + bean.getClass().getName() + + " for reason " + e.getMessage(), e); + } } } @@ -109,7 +112,10 @@ try { result = String.format(context.expression, args); } catch (Exception eee) { - log.error("Could not format " + context.expression + " with args : " + Arrays.toString(args), eee); + if (log.isErrorEnabled()) { + log.error("Could not format " + context.expression + "" + + " with args : " + Arrays.toString(args), eee); + } result = ""; } return result; @@ -249,9 +255,9 @@ protected static void ensureTokenIndex(JXPathDecorator<?> decorator, int pos) { if (pos < -1 || pos > decorator.getNbToken()) { - throw new ArrayIndexOutOfBoundsException("token index " + pos + - " is out of bound, can be inside [" + - 0 + ',' + decorator.nbToken + ']'); + throw new ArrayIndexOutOfBoundsException( + "token index " + pos + " is out of bound, can be inside [" + + 0 + ',' + decorator.nbToken + ']'); } } } Modified: trunk/jaxx-tutorial/pom.xml =================================================================== --- trunk/jaxx-tutorial/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/jaxx-tutorial/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -35,7 +35,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>jaxx</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> </parent> <groupId>org.nuiton.jaxx</groupId> Modified: trunk/jaxx-tutorial-config/pom.xml =================================================================== --- trunk/jaxx-tutorial-config/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/jaxx-tutorial-config/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -35,7 +35,7 @@ <parent> <groupId>org.nuiton.jaxx</groupId> <artifactId>jaxx-tutorial</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> <relativePath>../jaxx-tutorial</relativePath> </parent> Modified: trunk/jaxx-tutorial-css/pom.xml =================================================================== --- trunk/jaxx-tutorial-css/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/jaxx-tutorial-css/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -10,7 +10,7 @@ <parent> <groupId>org.nuiton.jaxx</groupId> <artifactId>jaxx-tutorial</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> <relativePath>../jaxx-tutorial</relativePath> </parent> Modified: trunk/jaxx-tutorial-databinding/pom.xml =================================================================== --- trunk/jaxx-tutorial-databinding/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/jaxx-tutorial-databinding/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -10,7 +10,7 @@ <parent> <groupId>org.nuiton.jaxx</groupId> <artifactId>jaxx-tutorial</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> <relativePath>../jaxx-tutorial</relativePath> </parent> Modified: trunk/jaxx-tutorial-helloworld/pom.xml =================================================================== --- trunk/jaxx-tutorial-helloworld/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/jaxx-tutorial-helloworld/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -10,7 +10,7 @@ <parent> <groupId>org.nuiton.jaxx</groupId> <artifactId>jaxx-tutorial</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> <relativePath>../jaxx-tutorial</relativePath> </parent> Modified: trunk/jaxx-tutorial-helloworld2/pom.xml =================================================================== --- trunk/jaxx-tutorial-helloworld2/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/jaxx-tutorial-helloworld2/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -10,7 +10,7 @@ <parent> <groupId>org.nuiton.jaxx</groupId> <artifactId>jaxx-tutorial</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> <relativePath>../jaxx-tutorial</relativePath> </parent> Modified: trunk/jaxx-tutorial-validation/pom.xml =================================================================== --- trunk/jaxx-tutorial-validation/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/jaxx-tutorial-validation/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -35,7 +35,7 @@ <parent> <groupId>org.nuiton.jaxx</groupId> <artifactId>jaxx-tutorial</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> <relativePath>../jaxx-tutorial</relativePath> </parent> Modified: trunk/jaxx-validator/pom.xml =================================================================== --- trunk/jaxx-validator/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/jaxx-validator/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -34,7 +34,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>jaxx</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> </parent> <groupId>org.nuiton.jaxx</groupId> Modified: trunk/jaxx-widgets/pom.xml =================================================================== --- trunk/jaxx-widgets/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/jaxx-widgets/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -35,7 +35,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>jaxx</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> </parent> <groupId>org.nuiton.jaxx</groupId> Modified: trunk/maven-jaxx-plugin/pom.xml =================================================================== --- trunk/maven-jaxx-plugin/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/maven-jaxx-plugin/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -35,7 +35,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>jaxx</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> </parent> <groupId>org.nuiton.jaxx</groupId> Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2011-02-20 12:13:14 UTC (rev 2237) +++ trunk/pom.xml 2011-03-02 09:46:21 UTC (rev 2238) @@ -38,7 +38,7 @@ </parent> <artifactId>jaxx</artifactId> - <version>3.0-SNAPSHOT</version> + <version>2.4.1-SNAPSHOT</version> <modules> <module>jaxx-runtime</module>