You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Kasper Nielsen <ne...@kav.dk> on 2001/07/30 15:22:22 UTC

Re: cvs commit:jakarta-turbine/src/java/org/apache/turbine/services ServiceException.javaServiceRuntimeException.java

I was thinking of putting it somewhere in commons? But its only 2 (right
now) abstract classes so where should it go?

JDK 1.4 is including arbitary nesting of exceptions directly in Throwable,
so we might think of deprecating some of the methods so its easier to
migrate once it is time.

- Kasper



> If you're sure, we should fix all the places this is used now. In Turbine,
> Fulcrum and Torque. We should really put these in a utility package
> and reuse them if possible.
>
> > Revision  Changes    Path
> > 1.2       +1 -4
> >
jakarta-turbine/src/java/org/apache/turbine/services/ServiceException.java
> >
> > Index: ServiceException.java
> > ===================================================================
> > RCS file:
> >
/home/cvs/jakarta-turbine/src/java/org/apache/turbine/services/ServiceExcept
io
> > n.java,v
> > retrieving revision 1.1
> > retrieving revision 1.2
> > diff -u -r1.1 -r1.2
> > --- ServiceException.java    2001/07/14 19:36:28    1.1
> > +++ ServiceException.java    2001/07/31 09:15:23    1.2
> > @@ -214,10 +214,7 @@
> >       */
> >      public void printStackTrace()
> >      {
> > -        synchronized(System.err)
> > -        {
> > -            printStackTrace(System.err);
> > -        }
> > +        printStackTrace(System.err);
> >      }
> >
> >      /**
> >
> >
> >
> > 1.2       +1 -4
> >
jakarta-turbine/src/java/org/apache/turbine/services/ServiceRuntimeException
.j
> > ava
> >
> > Index: ServiceRuntimeException.java
> > ===================================================================
> > RCS file:
> >
/home/cvs/jakarta-turbine/src/java/org/apache/turbine/services/ServiceRuntim
eE
> > xception.java,v
> > retrieving revision 1.1
> > retrieving revision 1.2
> > diff -u -r1.1 -r1.2
> > --- ServiceRuntimeException.java    2001/07/30 23:02:33    1.1
> > +++ ServiceRuntimeException.java    2001/07/31 09:15:23    1.2
> > @@ -136,10 +136,7 @@
> >       */
> >      public void printStackTrace()
> >      {
> > -        synchronized(System.err)
> > -        {
> > -            printStackTrace(System.err);
> > -        }
> > +        printStackTrace(System.err);
> >      }
> >
> >      /**
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>
> --
>
> jvz.
>
> Jason van Zyl
>
> http://tambora.zenplex.org
> http://jakarta.apache.org/turbine
> http://jakarta.apache.org/velocity
> http://jakarta.apache.org/alexandria
> http://jakarta.apache.org/commons
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Re: cvs commit:jakarta-turbine/src/java/org/apache/turbine/services ServiceException.javaServiceRuntimeException.java

Posted by Kasper Nielsen <ne...@kav.dk>.
----- Original Message -----
From: "Daniel Rall" <dl...@finemaltcoding.com>
To: <tu...@jakarta.apache.org>
Sent: Wednesday, August 01, 2001 2:22 AM
Subject: Re: cvs commit:jakarta-turbine/src/java/org/apache/turbine/services
ServiceException.javaServiceRuntimeException.java


> "Kasper Nielsen" <ne...@kav.dk> writes:
>
> > I was thinking of putting it somewhere in commons? But its only 2 (right
> > now) abstract classes so where should it go?
> >
> > JDK 1.4 is including arbitary nesting of exceptions directly in
Throwable,
> > so we might think of deprecating some of the methods so its easier to
> > migrate once it is time.
>
> It's too soon, but this would be a good idea somewhere down the road.
>
Im not saying we should convert to 1.4, im just saying that the interface
should be the same, so we won't have any trouble converting when that time
comes.

- Kasper



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Re: cvs commit:jakarta-turbine/src/java/org/apache/turbine/services ServiceException.javaServiceRuntimeException.java

Posted by Daniel Rall <dl...@finemaltcoding.com>.
"Kasper Nielsen" <ne...@kav.dk> writes:

> I was thinking of putting it somewhere in commons? But its only 2 (right
> now) abstract classes so where should it go?
> 
> JDK 1.4 is including arbitary nesting of exceptions directly in Throwable,
> so we might think of deprecating some of the methods so its easier to
> migrate once it is time.

It's too soon, but this would be a good idea somewhere down the road.

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Re: cvs commit:jakarta-turbine/src/java/org/apache/turbine/services ServiceException.javaServiceRuntimeException.java

Posted by Jason van Zyl <jv...@apache.org>.
On 7/30/01 9:22 AM, "Kasper Nielsen" <ne...@kav.dk> wrote:

> I was thinking of putting it somewhere in commons? But its only 2 (right
> now) abstract classes so where should it go?

Maybe we can make another tree with the utility code within the turbine
tree for now until we have time to make proposals for the commons. Or
maybe another repository?
 
> JDK 1.4 is including arbitary nesting of exceptions directly in Throwable,
> so we might think of deprecating some of the methods so its easier to
> migrate once it is time.
> 

-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org