You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stefan Bodewig <bo...@apache.org> on 2005/01/26 16:55:12 UTC
[MESSENGER] Make it compile with JDK 1.5
subject says it all. Some trivial "enum" replacements.
Stefan
Index: src/java/org/apache/commons/messagelet/BridgeMDO.java
===================================================================
RCS file: /home/cvspublic/jakarta-commons-sandbox/messenger/src/java/org/apache/commons/messagelet/BridgeMDO.java,v
retrieving revision 1.7
diff -u -r1.7 BridgeMDO.java
--- src/java/org/apache/commons/messagelet/BridgeMDO.java 4 Mar 2003 10:21:06 -0000 1.7
+++ src/java/org/apache/commons/messagelet/BridgeMDO.java 26 Jan 2005 15:54:44 -0000
@@ -1,5 +1,5 @@
/*
- * Copyright (C) The Apache Software Foundation. All rights reserved.
+ * Copyright (C) 2002-2005 The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
@@ -344,8 +344,8 @@
MapMessage answer = getOutputMessenger().createMapMessage();
// copy across all values
- for ( Enumeration enum = inputMessage.getMapNames(); enum.hasMoreElements(); ) {
- String name = (String) enum.nextElement();
+ for ( Enumeration e = inputMessage.getMapNames(); e.hasMoreElements(); ) {
+ String name = (String) e.nextElement();
Object value = inputMessage.getObject( name );
answer.setObject( name, value );
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [MESSENGER] Make it compile with JDK 1.5
Posted by Davanum Srinivas <da...@gmail.com>.
fixed.
thanks,
dims
On Wed, 26 Jan 2005 16:55:12 +0100, Stefan Bodewig <bo...@apache.org> wrote:
> subject says it all. Some trivial "enum" replacements.
>
> Stefan
>
> Index: src/java/org/apache/commons/messagelet/BridgeMDO.java
> ===================================================================
> RCS file: /home/cvspublic/jakarta-commons-sandbox/messenger/src/java/org/apache/commons/messagelet/BridgeMDO.java,v
> retrieving revision 1.7
> diff -u -r1.7 BridgeMDO.java
> --- src/java/org/apache/commons/messagelet/BridgeMDO.java 4 Mar 2003 10:21:06 -0000 1.7
> +++ src/java/org/apache/commons/messagelet/BridgeMDO.java 26 Jan 2005 15:54:44 -0000
> @@ -1,5 +1,5 @@
> /*
> - * Copyright (C) The Apache Software Foundation. All rights reserved.
> + * Copyright (C) 2002-2005 The Apache Software Foundation. All rights reserved.
> *
> * This software is published under the terms of the Apache Software License
> * version 1.1, a copy of which has been included with this distribution in
> @@ -344,8 +344,8 @@
> MapMessage answer = getOutputMessenger().createMapMessage();
>
> // copy across all values
> - for ( Enumeration enum = inputMessage.getMapNames(); enum.hasMoreElements(); ) {
> - String name = (String) enum.nextElement();
> + for ( Enumeration e = inputMessage.getMapNames(); e.hasMoreElements(); ) {
> + String name = (String) e.nextElement();
> Object value = inputMessage.getObject( name );
> answer.setObject( name, value );
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
--
Davanum Srinivas - http://webservices.apache.org/~dims/
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [MESSENGER] Make it compile with JDK 1.5
Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 26 Jan 2005, Henri Yandell <fl...@gmail.com> wrote:
> Messenger is dead I think, James moved the dev over to Codehaus and
> suggesting we consider removing Messenger has been on my todo list
> for a year or so :)
There are a few Apache projects that depend on messenger, see
<http://brutus.apache.org/gump/jdk15/jakarta-commons-sandbox/commons-messenger/details.html>
at the bottom.
Avalon is dead and I don't know how/if the Excalibur project is going
to deal with the related code, but the JMS taglibs (both Jelly and
JSP) as well as Turbine/Stratum need it.
My goal was to allow those projects to build in Gump, not more 8-)
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [MESSENGER] Make it compile with JDK 1.5
Posted by Henri Yandell <fl...@gmail.com>.
Messenger is dead I think, James moved the dev over to Codehaus and
suggesting we consider removing Messenger has been on my todo list for
a year or so :)
Still, no reason not to fix the code, just mentioning it before
another year passes.
Hen
On Wed, 26 Jan 2005 16:55:12 +0100, Stefan Bodewig <bo...@apache.org> wrote:
> subject says it all. Some trivial "enum" replacements.
>
> Stefan
>
> Index: src/java/org/apache/commons/messagelet/BridgeMDO.java
> ===================================================================
> RCS file: /home/cvspublic/jakarta-commons-sandbox/messenger/src/java/org/apache/commons/messagelet/BridgeMDO.java,v
> retrieving revision 1.7
> diff -u -r1.7 BridgeMDO.java
> --- src/java/org/apache/commons/messagelet/BridgeMDO.java 4 Mar 2003 10:21:06 -0000 1.7
> +++ src/java/org/apache/commons/messagelet/BridgeMDO.java 26 Jan 2005 15:54:44 -0000
> @@ -1,5 +1,5 @@
> /*
> - * Copyright (C) The Apache Software Foundation. All rights reserved.
> + * Copyright (C) 2002-2005 The Apache Software Foundation. All rights reserved.
> *
> * This software is published under the terms of the Apache Software License
> * version 1.1, a copy of which has been included with this distribution in
> @@ -344,8 +344,8 @@
> MapMessage answer = getOutputMessenger().createMapMessage();
>
> // copy across all values
> - for ( Enumeration enum = inputMessage.getMapNames(); enum.hasMoreElements(); ) {
> - String name = (String) enum.nextElement();
> + for ( Enumeration e = inputMessage.getMapNames(); e.hasMoreElements(); ) {
> + String name = (String) e.nextElement();
> Object value = inputMessage.getObject( name );
> answer.setObject( name, value );
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org