click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From med...@apache.org
Subject svn commit: r1389361 - /click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
Date Mon, 24 Sep 2012 13:35:08 GMT
Author: medgar
Date: Mon Sep 24 13:35:08 2012
New Revision: 1389361

URL: http://svn.apache.org/viewvc?rev=1389361&view=rev
Log:
CLK-790

Modified:
    click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java

Modified: click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java?rev=1389361&r1=1389360&r2=1389361&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java (original)
+++ click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java Mon Sep
24 13:35:08 2012
@@ -2023,10 +2023,9 @@ public class XmlConfigService implements
             String classnameFound = null;
 
             try {
-
-                    // First, lookup classname as provided
-                    tmpPageClass = ClickUtils.classForName(classname);
-                    classnameFound = classname;
+                // First, lookup classname as provided
+                tmpPageClass = ClickUtils.classForName(classname);
+                classnameFound = classname;
 
             } catch (ClassNotFoundException cnfe) {
 
@@ -2048,6 +2047,11 @@ public class XmlConfigService implements
                             + classname + "'.";
                         throw new RuntimeException(msg, cnfe);
                     }
+
+                } else {
+                    String msg = "No class was found for the Page classname: '"
+                        + classname + "'.";
+                    throw new RuntimeException(msg, cnfe);
                 }
             }
 
@@ -2059,7 +2063,6 @@ public class XmlConfigService implements
                 throw new RuntimeException(msg);
             }
 
-
             fieldArray = XmlConfigService.getBindablePageFields(pageClass, autobinding);
 
             fields = new HashMap<String, Field>();



Mime
View raw message