Re: Exception handling Was: Future JDK features 2 items

2004-11-19 Thread Craig McClanahan
On Fri, 19 Nov 2004 23:21:02 -0800, Daniel Rall <[EMAIL PROTECTED]> wrote:
> On Fri, 2004-10-29 at 13:35 -0400, Henri Yandell wrote:
> ...
> > How about just being able to do multiple Exceptions in one block?
> >
> > try {
> >  
> > } catch(JMSException, RemoteException, SQLException e) {
> > }
> >
> > or possibly even:
> >
> > try {
> >  
> > } catch( (JMSException | RemoteException | SQLException) e) {
> > }
> 
> Something like this would be truly excellent.  I'm so sick of having to
> write 30 lines of exception handling code.

How about two lines, which you can already do today?

try {
  ...
} catch (Exception e) {
  ...
}

If you really want to treat different types of exceptions differently,
you can special case by putting specialized catch blocks for the
special cases in front of this.  The predominant use case, though,
seems to be a standarized "log it and exit" or "log it and rethrow it
in a wrapper exception" strategy, which you can deal with quite
easily.

Sheesh, hasn't anyone ever heard of inheritance around here?  :-)

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Exception handling Was: Future JDK features 2 items

2004-11-19 Thread Daniel Rall
On Fri, 2004-10-29 at 13:35 -0400, Henri Yandell wrote:
...
> How about just being able to do multiple Exceptions in one block?
> 
> try {
>  
> } catch(JMSException, RemoteException, SQLException e) {
> }
> 
> or possibly even:
> 
> try {
>  
> } catch( (JMSException | RemoteException | SQLException) e) {
> }

Something like this would be truly excellent.  I'm so sick of having to
write 30 lines of exception handling code.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Jakarta Wiki] Updated: Migrating to Subversion

2004-11-19 Thread general
   Date: 2004-11-19T14:15:41
   Editor: DanielRall <[EMAIL PROTECTED]>
   Wiki: Jakarta Wiki
   Page: Migrating to Subversion
   URL: http://wiki.apache.org/jakarta/Migrating to Subversion

   no comment

Change Log:

--
@@ -1,6 +1,9 @@
 = Migrating to Subversion =
 
-Migrating from CVS to [http://subversion.tigris.org/ Subversion] is an ASF 
desired event for Jakarta.
+Migrating from [http://www.cvshome.org/ CVS] to [http://subversion.tigris.org/ 
Subversion] is an ASF Infrastructure desired event for Jakarta.
+
+ * See the [http://www.apache.org/dev/version-control.html Version Control] 
page for usage details.
+ * See the [http://www.apache.org/dev/cvs2svn.html cvs2svn] page for 
conversion details.
 
 == Plan ==
 
@@ -29,3 +32,5 @@
 == Migrated ==
 
  * ORO
+ * ECS
+ * Velocity

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ApacheCon notice

2004-11-19 Thread Daniel Rall
Now that AC is over, I've pulled the ad from the jarkarta-site2 module.

On Mon, 2004-11-01 at 13:52 -0500, Henri Yandell wrote:
> Just a note for all Jakarta committers. With the ApacheCon conference 
> coming up, we've been asked to place an ApacheCon logo on the sites; 
> something which is being done across all of the Jakarta sub-project sites 
> (sorry, request was made on the PMC list).
> 
> If it's missing on one of the sites you're responsible for, feel free to 
> add it.
> 
> In addition, if any committers would like to advertise the conference on 
> their own site, it would be much appreciated:
> 
>   http://ApacheCon.Com/2004/US/";> src="http://ApacheCon.Com/2004/US/logos/asf_committer.gif";
> width="170" height="100" alt="ApacheCon!" title="Come to ApacheCon!"
> border="0" />
> 
> http://apachecon.com/2004/US/logos/ has a selection of other images if 
> they fit you better.
> 
> 
> Thanks,
> 
> Hen
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bugzilla buggy?

2004-11-19 Thread Daniel Rall
On Wed, 2004-11-17 at 10:04 +0900, Shinobu Kawai wrote:
> Looks like it's fixed.  :)
> 
> > Is bugzilla broken?  Or is it just me?
> > I tried to see a bug, and got a big red error message.  :(
> >  http://issues.apache.org/bugzilla/show_bug.cgi?id=32247

This was probably caused by the migration of Bugzilla to new hardware
(from nagoya to ajax).  Connectivity to the new box dropped mid-
migration.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Jakarta Wiki] Updated: JakartaBoardReport-December2004

2004-11-19 Thread general
   Date: 2004-11-19T13:20:23
   Editor: DanielRall <[EMAIL PROTECTED]>
   Wiki: Jakarta Wiki
   Page: JakartaBoardReport-December2004
   URL: http://wiki.apache.org/jakarta/JakartaBoardReport-December2004

   no comment

Change Log:

--
@@ -3,6 +3,7 @@
 === Status ===
 
  * ECS, ORO, and the Velocity modules migrated to SVN.
+ * Turbine migration to SVN under consideration -- desire JCS resolution.
  * Clover license for all of ASF.
 
 === Possible plans for the next quarter ===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Jakarta Wiki] Updated: JakartaBoardReport-December2004

2004-11-19 Thread general
   Date: 2004-11-19T13:19:16
   Editor: DanielRall <[EMAIL PROTECTED]>
   Wiki: Jakarta Wiki
   Page: JakartaBoardReport-December2004
   URL: http://wiki.apache.org/jakarta/JakartaBoardReport-December2004

   Noted that Velocity has been migrated to SVN.

Change Log:

--
@@ -2,7 +2,7 @@
 
 === Status ===
 
- * ECS and ORO migrated to SVN.
+ * ECS, ORO, and the Velocity modules migrated to SVN.
  * Clover license for all of ASF.
 
 === Possible plans for the next quarter ===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Jakarta Wiki] Updated: JakartaBoardReport-December2004

2004-11-19 Thread general
   Date: 2004-11-19T09:42:08
   Editor: HenriYandell <[EMAIL PROTECTED]>
   Wiki: Jakarta Wiki
   Page: JakartaBoardReport-December2004
   URL: http://wiki.apache.org/jakarta/JakartaBoardReport-December2004

   no comment

Change Log:

--
@@ -35,6 +35,7 @@
 = New PMC members =
 
  * 11 October 2004 - James Mason (masonjm) - Slide
+ * 19 October 2004 - Robert Burell Donkin (rdonkin) - Commons
 
 = New Committers =
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]