[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...
Gavin King
gavin.king at jboss.com
Thu Feb 22 10:52:08 EST 2007
User: gavin
Date: 07/02/22 10:52:08
Modified: src/main/org/jboss/seam/core Manager.java Pages.java
Log:
dont swallow exception
Revision Changes Path
1.147 +7 -4 jboss-seam/src/main/org/jboss/seam/core/Manager.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Manager.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/Manager.java,v
retrieving revision 1.146
retrieving revision 1.147
diff -u -b -r1.146 -r1.147
--- Manager.java 22 Feb 2007 15:46:56 -0000 1.146
+++ Manager.java 22 Feb 2007 15:52:07 -0000 1.147
@@ -45,7 +45,7 @@
*
* @author Gavin King
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
- * @version $Revision: 1.146 $
+ * @version $Revision: 1.147 $
*/
@Scope(ScopeType.EVENT)
@Name("org.jboss.seam.core.manager")
@@ -1000,7 +1000,10 @@
{
url = new URL(scheme, u.getHost(), u.getPort(), url).toString();
}
- catch (MalformedURLException ex) {}
+ catch (MalformedURLException ex)
+ {
+ throw new RuntimeException(ex);
+ }
}
return url;
}
@@ -1018,7 +1021,7 @@
}
catch (MalformedURLException ex)
{
- return null;
+ throw new RuntimeException(ex);
}
}
1.94 +1 -1 jboss-seam/src/main/org/jboss/seam/core/Pages.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Pages.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/Pages.java,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -b -r1.93 -r1.94
--- Pages.java 22 Feb 2007 15:46:56 -0000 1.93
+++ Pages.java 22 Feb 2007 15:52:07 -0000 1.94
@@ -283,7 +283,7 @@
}
catch (MalformedURLException ex)
{
- return null;
+ throw new RuntimeException(ex);
}
}
More information about the jboss-cvs-commits
mailing list