cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject Re: svn commit: r518067 - in /cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util: BlockCallHttpServletRequest.java BlockCallHttpServletResponse.java
Date Wed, 14 Mar 2007 08:50:16 GMT

Grek, are you using Java 1.4 for development? I suppose not ;-)

Maybe it's better to throw some more meaningful exception than a 
RuntimeException but I haven't had time to look into this case.




reinhard@apache.org wrote:
> Author: reinhard
> Date: Wed Mar 14 01:35:07 2007
> New Revision: 518067
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=518067
> Log:
> Java 5 problem?
> 
> Modified:
>     cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletRequest.java
>     cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletResponse.java
> 
> Modified: cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletRequest.java
> URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletRequest.java?view=diff&rev=518067&r1=518066&r2=518067
> ==============================================================================
> --- cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletRequest.java
(original)
> +++ cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletRequest.java
Wed Mar 14 01:35:07 2007
> @@ -130,7 +130,7 @@
>      	try {
>  			return dateFormat.parse(header).getTime();
>  		} catch (ParseException e) {
> -			throw new IllegalArgumentException(e);
> +			throw new RuntimeException(e);
>  		}
>      }
>      
> 
> Modified: cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletResponse.java
> URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletResponse.java?view=diff&rev=518067&r1=518066&r2=518067
> ==============================================================================
> --- cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletResponse.java
(original)
> +++ cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/util/BlockCallHttpServletResponse.java
Wed Mar 14 01:35:07 2007
> @@ -294,7 +294,7 @@
>      	try {
>  			return dateFormat.parse(header).getTime();
>  		} catch (ParseException e) {
> -			throw new IllegalArgumentException(e);
> +			throw new RuntimeException(e);
>  		}
>      }
-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------

Mime
View raw message