You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2009/03/03 21:25:55 UTC

svn commit: r749734 - /velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/WebappUberspector.java

Author: nbubna
Date: Tue Mar  3 20:25:55 2009
New Revision: 749734

URL: http://svn.apache.org/viewvc?rev=749734&view=rev
Log:
expand package import and fix init() compile errors

Modified:
    velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/WebappUberspector.java

Modified: velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/WebappUberspector.java
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/WebappUberspector.java?rev=749734&r1=749733&r2=749734&view=diff
==============================================================================
--- velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/WebappUberspector.java (original)
+++ velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/WebappUberspector.java Tue Mar  3 20:25:55 2009
@@ -19,7 +19,12 @@
  * under the License.
  */
 
-import org.apache.velocity.util.introspection.*;
+import org.apache.velocity.util.introspection.AbstractChainableUberspector;
+import org.apache.velocity.util.introspection.Info;
+import org.apache.velocity.util.introspection.Introspector;
+import org.apache.velocity.util.introspection.VelMethod;
+import org.apache.velocity.util.introspection.VelPropertyGet;
+import org.apache.velocity.util.introspection.VelPropertySet;
 import org.apache.velocity.runtime.parser.node.AbstractExecutor;
 import org.apache.velocity.runtime.parser.node.SetExecutor;
 import org.apache.velocity.runtime.log.Log;
@@ -79,11 +84,23 @@
 
     /**
      * init method
-     * @throws Exception
      */
-    public void init() throws Exception
+    @Override
+    public void init()
     {
-        super.init();
+        try
+        {
+            super.init();
+        }
+        catch (RuntimeException re)
+        {
+            throw re;
+        }
+        catch (Exception e)
+        {
+            throw new RuntimeException(e);
+        }
+
         // we need our own introspector since the inner one is hidden by the Uberspect interface
         introspector = new Introspector(log);
     }