Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 37196 invoked from network); 9 Mar 2005 22:53:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Mar 2005 22:53:12 -0000 Received: (qmail 99799 invoked by uid 500); 9 Mar 2005 22:53:09 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 99744 invoked by uid 500); 9 Mar 2005 22:53:09 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 99730 invoked by uid 99); 9 Mar 2005 22:53:09 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mout.perfora.net (HELO mout.perfora.net) (217.160.230.40) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 09 Mar 2005 14:53:09 -0800 Received: from minotaur.apache.org[209.237.227.194] (helo=[127.0.0.1]) by mrelay.perfora.net with ESMTP (Nemesis), id 0MKz5u-1D9A372jhC-0002WM; Wed, 09 Mar 2005 17:53:05 -0500 Message-ID: <422F7E50.1070604@reverycodes.com> Date: Wed, 09 Mar 2005 17:53:04 -0500 From: Vadim Gritsenko User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Java 1.3 issue in portal block. References: <59902.165.98.153.184.1110406962.squirrel@www.agssa.net> <422F790A.1090701@reverycodes.com> <60521.165.98.153.184.1110408686.squirrel@www.agssa.net> In-Reply-To: <60521.165.98.153.184.1110408686.squirrel@www.agssa.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: perfora.net abuse@perfora.net login:e2e4156964dfbcc4c642ec658fa7f9b9 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Antonio Gallardo wrote: > throw new CascadingRuntimeException(e.getMessage(), e); > > This will be OK? Perfect. :-) Vadim > Best Regards, > > Antonio Gallardo > > On Mie, 9 de Marzo de 2005, 16:30, Vadim Gritsenko dijo: > >>Antonio Gallardo wrote: >> >>>Hi: >>> >>>Please check this code it does not compile in java 1.3: >>> >>>/home/agallardo/svn/cocoon-2.1/src/blocks/portal/java/org/apache/cocoon/portal/tools/service/UserrightsService.java:124: >>>cannot resolve symbol >>>symbol : constructor RuntimeException (java.io.IOException) >>>location: class java.lang.RuntimeException >>> throw new RuntimeException(e); >>> ^ >> >>Use CascadingRuntimeException instead. >> >> >> >>>Please to portal gurus to review why we need here the "new". In my view >>>this is not needed, but please confirm I can remove the "new". >> >>They want to wrap IOException into RuntimeException. >> >>Vadim