Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AED05DBEC for ; Wed, 12 Dec 2012 04:39:27 +0000 (UTC) Received: (qmail 3177 invoked by uid 500); 12 Dec 2012 04:39:26 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 2561 invoked by uid 500); 12 Dec 2012 04:39:23 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 2505 invoked by uid 99); 12 Dec 2012 04:39:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2012 04:39:21 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.160.44 as permitted sender) Received: from [209.85.160.44] (HELO mail-pb0-f44.google.com) (209.85.160.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2012 04:39:14 +0000 Received: by mail-pb0-f44.google.com with SMTP id uo1so184926pbc.31 for ; Tue, 11 Dec 2012 20:38:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition; bh=nG3GyBGHIxPCPjCh7Bj4Tke9qtfyOgXk2+b0i6j6xwE=; b=IOJk5uGkMtXuTkDkUczKYaJ6ndzMT1/MXwd8Ol8KXnCgFc/TVkU8fU8EYDiUoPR4ue sgKPq8KITybEe3rUAnDcxmt/do4H/usfURIr3kthb+RZHgRGI4m95zzIsXWQk+bfDi94 vgoLgmeAXQtxXum87JIupgiSFRqAHBYfHRQXWzJAKV9zdAf461/O+41eSJlF1puqf4nv AihyxzLJocAbLObSJuV4CCMc2tkExxvPoIxtA6cGWabs0vh0IGKkTscbhMbJrDSKdXM1 pS5IAouFRj/QP7lvMmt/JEIDwdJEjG4y1DIZhWYzPLC67ZJps/FmtX9LDwCdowwN4dlz 6AKg== Received: by 10.68.129.227 with SMTP id nz3mr1584625pbb.111.1355287132960; Tue, 11 Dec 2012 20:38:52 -0800 (PST) Received: from [192.168.1.135] ([123.116.42.109]) by mx.google.com with ESMTPS id o5sm1202023pay.5.2012.12.11.20.38.50 (version=SSLv3 cipher=OTHER); Tue, 11 Dec 2012 20:38:52 -0800 (PST) Date: Wed, 12 Dec 2012 12:38:45 +0800 From: Willem jiang To: dev@camel.apache.org Message-ID: <4D52FD27527F4F238FC30D02EA50A94B@gmail.com> In-Reply-To: <20121211220634.40FB2238890B@eris.apache.org> References: <20121211220634.40FB2238890B@eris.apache.org> Subject: Re: svn commit: r1420455 - =?utf-8?Q?/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/WrapProcessor.java?= X-Mailer: sparrow 1.6.4 (build 1176) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi Christian=EF=BC=8C This change breaks some unit tests of camel-core, can you have a look at = them =3F BTW, wrap=5Borg.apache.camel.processor.DefaultErrorHandlerOnExceptionTrac= eTest=24MyProcessor=40301a69c=5D is really a good trace lab for us to us= e. =46ailed tests: =20 testOk(org.apache.camel.processor.DefaultErrorHandlerOnExceptionTraceTest= ): expected:<=5Bref:myProcessor=5D> but was:<=5Bwrap=5Borg.apache.camel.p= rocessor.DefaultErrorHandlerOnExceptionTraceTest=24MyProcessor=40301a69c=5D= =5D> testWithError(org.apache.camel.processor.DefaultErrorHandlerOnExceptionTr= aceTest): expected:<=5Bref:myProcessor=5D> but was:<=5Bwrap=5Borg.apache.= camel.processor.DefaultErrorHandlerOnExceptionTraceTest=24MyProcessor=401= 0042865=5D=5D> testSynchronizeComplete(org.apache.camel.processor.OnCompletionGlobalTrac= eTest): expected:<=5Bref:myProcessor=5D> but was:<=5Bwrap=5Borg.apache.ca= mel.processor.OnCompletionGlobalTraceTest=24MyProcessor=404f4c55e7=5D=5D>= testSynchronize=46ailure(org.apache.camel.processor.OnCompletionGlobalTra= ceTest): expected:<=5Bref:myProcessor=5D> but was:<=5Bwrap=5Borg.apache.c= amel.processor.OnCompletionGlobalTraceTest=24MyProcessor=40256949fd=5D=5D= > -- =20 Willem Jiang Red Hat, Inc. =46useSource is now part of Red Hat Web: http://www.fusesource.com =7C http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) = (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang =20 Weibo: =E5=A7=9C=E5=AE=81willem On Wednesday, December 12, 2012 at 6:06 AM, cmueller=40apache.org (mailto= :cmueller=40apache.org) wrote: > Author: cmueller > Date: Tue Dec 11 22:06:32 2012 > New Revision: 1420455 > =20 > URL: http://svn.apache.org/viewvc=3Frev=3D1420455&view=3Drev > Log: > CAMEL-5844: Camel Tracer not showing some EIP names > =20 > Modified: > camel/trunk/camel-core/src/main/java/org/apache/camel/processor/WrapPro= cessor.java > =20 > Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/process= or/WrapProcessor.java > URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/= org/apache/camel/processor/WrapProcessor.java=3Frev=3D1420455&r1=3D142045= 4&r2=3D1420455&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- camel/trunk/camel-core/src/main/java/org/apache/camel/processor/Wra= pProcessor.java (original) > +++ camel/trunk/camel-core/src/main/java/org/apache/camel/processor/Wra= pProcessor.java Tue Dec 11 22:06:32 2012 > =40=40 -19,14 +19,14 =40=40 package org.apache.camel.processor; > import java.util.List; > =20 > import org.apache.camel.Processor; > +import org.apache.camel.Traceable; > import org.apache.camel.util.ServiceHelper; > =20 > /** > * A processor which ensures wrapping processors is having lifecycle han= dled. > - * > - * =40version =20 > */ > -public class WrapProcessor extends DelegateAsyncProcessor =7B > +public class WrapProcessor extends DelegateAsyncProcessor implements T= raceable =7B > + > private final Processor wrapped; > =20 > public WrapProcessor(Processor processor, Processor wrapped) =7B > =40=40 -38,6 +38,10 =40=40 public class WrapProcessor extends Deleg > public String toString() =7B > return =22Wrap=5B=22 + wrapped + =22=5D -> =22 + processor; > =7D > + =20 > + public String getTraceLabel() =7B > + return =22wrap=5B=22 + wrapped + =22=5D=22; > + =7D > =20 > =40Override > public List next() =7B > =20