You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2009/10/06 13:23:26 UTC

svn commit: r822223 - /harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/GenericURLContext.java

Author: tellison
Date: Tue Oct  6 11:23:26 2009
New Revision: 822223

URL: http://svn.apache.org/viewvc?rev=822223&view=rev
Log:
Fix code that created, but forgot to throw the exception.

Modified:
    harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/GenericURLContext.java

Modified: harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/GenericURLContext.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/GenericURLContext.java?rev=822223&r1=822222&r2=822223&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/GenericURLContext.java (original)
+++ harmony/enhanced/classlib/trunk/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/GenericURLContext.java Tue Oct  6 11:23:26 2009
@@ -768,18 +768,17 @@
 
                 if (next > length) {
                     // jndi.2B=Invalid URL format: {0}
-                    new IllegalArgumentException(Messages.getString(
+                    throw new IllegalArgumentException(Messages.getString(
                             "jndi.2B", str)); //$NON-NLS-1$
-                }
+               }
 
                 try {
                     bytes[index++] = (byte) Integer.parseInt(str.substring(i,
                             next), 16);
                 } catch (NumberFormatException e) {
-                    throw (IllegalArgumentException)
                     // jndi.2B=Invalid URL format: {0}
-                    new IllegalArgumentException(Messages.getString(
-                            "jndi.2B", str)).initCause(e); //$NON-NLS-1$
+                    throw (IllegalArgumentException) new IllegalArgumentException(
+                            Messages.getString("jndi.2B", str)).initCause(e); //$NON-NLS-1$
                 }
 
                 i = next;